Created
November 30, 2017 12:59
-
-
Save DarthSim/ee75da7da21dc984fe5e99ac86509a9f to your computer and use it in GitHub Desktop.
Nginx configuration for imgproxy
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
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; | |
} | |
} |
If I download imgproxy_master.zip, there is everything to run imgproxy server?
does it mean I can run it on any system ?
if yes, how should I run/start this server ?
"go" installed, all the required stuff as well,
tried "go run server.go" but it throwing out a few errors.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So this is configuration for ngix, by any chance will it work with Apache/Httpd ?
(Of course not in form as above :))