Last active
June 1, 2016 16:03
-
-
Save csrocha/8983347 to your computer and use it in GitHub Desktop.
ngnix-openerp
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; | |
rewrite ^(.*)$ https://$host$1 last; | |
} | |
server { | |
listen 443; | |
ssl on; | |
ssl_certificate /etc/ssl/host.crt; | |
ssl_certificate_key /etc/ssl/host.key; | |
ssl_session_cache shared:SSL:10m; | |
ssl_session_timeout 10m; | |
keepalive_timeout 70; | |
location / { | |
proxy_pass http://127.0.0.1:8069/; | |
proxy_redirect http://127.0.0.1:8069/ https://$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-Host $host; | |
proxy_set_header X-Forwarded-Port $server_port; | |
} | |
} |
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; | |
rewrite ^(.*)$ https://$host$1 last; | |
} | |
server { | |
listen 443; | |
ssl on; | |
ssl_certificate /etc/ssl/localcerts/host.pem; | |
ssl_certificate_key /etc/ssl/localcerts/host.key; | |
ssl_session_cache shared:SSL:10m; | |
ssl_session_timeout 10m; | |
keepalive_timeout 70; | |
location / { | |
proxy_pass http://127.0.0.1:MODOOPORT/; | |
proxy_redirect http://127.0.0.1:MODOOPORT/ https://$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-Host $host; | |
proxy_set_header X-Forwarded-Port $server_port; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment