Last active
August 29, 2015 14:15
-
-
Save cobbspur/6f0bf1cffc6c646127c7 to your computer and use it in GitHub Desktop.
nginxsetup
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 default_server; | |
listen [::]:433 ssl; | |
listen [::]:80 default_server ipv6only=on; | |
server_name mydomain.com; # Replace with your domain | |
root /usr/share/nginx/html; | |
index index.html index.htm; | |
client_max_body_size 10G; | |
location / { | |
proxy_pass http://localhost:2368; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header Host $http_host; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_buffering off; | |
auth_basic "Restricted"; | |
auth_basic_user_file /etc/nginx/.htpasswd; | |
} | |
location /isso { | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Script-Name /isso; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_pass http://localhost:2369; | |
} | |
location /ghost/ { | |
proxy_pass http://localhost:2368/ghost/; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header Host $http_host; | |
proxy_set_header X_Forwarded-Proto $scheme; | |
proxy_buffering off; | |
auth_basic "off"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment