Skip to content

Instantly share code, notes, and snippets.

@jcockhren

jcockhren/master Secret

Last active August 29, 2015 14:11
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 jcockhren/7bc174e04f72672ff45c to your computer and use it in GitHub Desktop.
Save jcockhren/7bc174e04f72672ff45c to your computer and use it in GitHub Desktop.
Nginx config for reverse proxy to salt-api with SSL
rest_cherrypy:
port: 8000
host: 127.0.0.1
debug: True
webhook_disable_auth: True
disable_ssl: True
collect_stats: True
upstream ge {
server 127.0.0.1:8000;
}
server {
listen 80;
server_name salt.example.com;
rewrite ^ https://$server_name$request_uri? permanent;
}
server {
listen 443 ssl;
server_name salt.example.com;
ssl_certificate /etc/nginx/certs/example_com_bundle.crt;
ssl_certificate_key /etc/nginx/certs/example.com.key.nopass;
location / {
proxy_pass http://ge;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment