-
-
Save kylewm/08210dda7abc4caaaaf9 to your computer and use it in GitHub Desktop.
nginx server config, uwsgi_cache attempt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uwsgi_cache_path /var/cache/nginx levels=1:2 keys_zone=one:10m; | |
server { | |
listen 443 ssl; | |
server_name kylewm.com; | |
access_log /srv/www/kylewm.com/logs/access.log; | |
error_log /srv/www/kylewm.com/logs/error.log warn; | |
root /srv/www/kylewm.com/public_html; | |
client_max_body_size 10M; | |
location / { try_files $uri @groomsman; } | |
location @groomsman { | |
include uwsgi_params; | |
uwsgi_pass unix:/tmp/uwsgi.sock; | |
uwsgi_param UWSGI_SCHEME $scheme; | |
uwsgi_cache one; | |
uwsgi_cache_key $uri; | |
uwsgi_cache_valid any 5m; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment