Created
June 18, 2017 08:19
-
-
Save anonymous/d7bcc46a9544f8541b3558b3e1354f85 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
nano -w /etc/nginx/conf.d/saltpad.conf | |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server ipv6only=on; | |
# Saltpad specific | |
root /code/saltpad/; | |
index index.html; | |
server_name gru.neutralisp.com; | |
location / { | |
try_files $uri /index.html; | |
} | |
# Salt-api specific | |
location /api/ { | |
proxy_pass http://localhost:8000/; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment