Skip to content

Instantly share code, notes, and snippets.

@petrozavodsky
Forked from DarthSim/imgproxy.conf
Created June 7, 2019 09:19
Show Gist options
  • Save petrozavodsky/ba2ec9e3ee558aeec8df6894fcdfc2d2 to your computer and use it in GitHub Desktop.
Save petrozavodsky/ba2ec9e3ee558aeec8df6894fcdfc2d2 to your computer and use it in GitHub Desktop.
Nginx configuration for imgproxy
server {
server_name your-domain.com;
listen 443;
client_max_body_size 8M;
ssl on;
ssl_certificate /path/to/your/cert.crt;
ssl_certificate_key /path/to/your/cert.key;
keepalive_timeout 60;
ssl_session_timeout 5m;
ssl_protocols SSLv2 SSLv3 TLSv1;
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
ssl_prefer_server_ciphers on;
location / {
proxy_pass http://127.0.0.1:8080; # or whenever imgproxy is listening
proxy_next_upstream error timeout invalid_header;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto http;
proxy_redirect off;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment