Last active
August 29, 2015 14:22
-
-
Save halfninja/e8ebfa36a01e78ef01b5 to your computer and use it in GitHub Desktop.
Nginx basic app proxy
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
upstream tomcats { | |
server localhost:8080; | |
} | |
server { | |
listen 443; | |
server_name $hostname.example.org; | |
ssl on; | |
ssl_certificate /var/org/ssl/personal.crt; | |
ssl_certificate_key /var/org/ssl/personal.key; | |
ssl_trusted_certificate /var/org/ssl/intermediates/terena256.pem; | |
ssl_prefer_server_ciphers on; | |
ssl_protocols TLSv1.1 TLSv1.2; | |
ssl_ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS; | |
location / { | |
proxy_pass http://tomcats; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment