Created
February 1, 2013 14:15
-
-
Save hendricius/4691548 to your computer and use it in GitHub Desktop.
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 { | |
listen 80; | |
server_name staging.musterbrand-system.com *.staging.musterbrand-system.com; | |
location / { | |
proxy_pass http://127.0.0.1:6081/; | |
proxy_set_header Host $http_host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_read_timeout 600; | |
proxy_connect_timeout 600; | |
send_timeout 600; | |
client_body_timeout 600; | |
} | |
location /images { | |
proxy_pass https://staging.musterbrand-system.com; | |
} | |
} | |
server { | |
listen 443; | |
server_name staging.musterbrand-system.com *.staging.musterbrand-system.com; | |
ssl on; | |
ssl_certificate /etc/ssl/web/server.cert.crt; | |
ssl_certificate_key /etc/ssl/web/server.cert.key; | |
ssl_session_timeout 5m; | |
ssl_protocols SSLv3 TLSv1; | |
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP; | |
ssl_prefer_server_ciphers on; | |
client_max_body_size 512m; | |
access_log /var/log/nginx/brandshops-access.log; | |
error_log /var/log/nginx/brandshops-error.log; | |
location / { | |
proxy_pass http://localhost:8080; | |
proxy_set_header Host $http_host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_read_timeout 600; | |
proxy_connect_timeout 600; | |
send_timeout 600; | |
client_body_timeout 600; | |
} | |
location /images { | |
proxy_pass https://staging.musterbrand-system.com; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment