Skip to content

Instantly share code, notes, and snippets.

Created June 18, 2017 08:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/d7bcc46a9544f8541b3558b3e1354f85 to your computer and use it in GitHub Desktop.
Save anonymous/d7bcc46a9544f8541b3558b3e1354f85 to your computer and use it in GitHub Desktop.
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