-
-
Save jcockhren/7bc174e04f72672ff45c to your computer and use it in GitHub Desktop.
Nginx config for reverse proxy to salt-api with SSL
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
rest_cherrypy: | |
port: 8000 | |
host: 127.0.0.1 | |
debug: True | |
webhook_disable_auth: True | |
disable_ssl: True | |
collect_stats: True |
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
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