Created
June 27, 2016 16:17
-
-
Save fr34k8/10b9aad77d4bef9b9d37560c9d792afe to your computer and use it in GitHub Desktop.
Foreman on NginX+Passenger
This file contains hidden or 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
## Puppet Foreman | |
server { | |
listen 443 ssl; | |
ssl_certificate ssl/foreman.xxx.com.crt; | |
ssl_certificate_key ssl/foreman.xxx.com.key; | |
ssl_session_timeout 10m; | |
add_header Strict-Transport-Security max-age=15768000; | |
server_name foreman.xxx.com; | |
access_log /var/log/nginx/foreman.access.log; | |
error_log /var/log/nginx/foreman.error.log; | |
root /opt/foreman/public; | |
location / { | |
passenger_enabled on; | |
auth_basic "Restricted!!!"; | |
auth_basic_user_file .htpasswd; | |
} | |
} | |
server { | |
listen 127.0.0.1:3000; | |
root /opt/foreman/public; | |
passenger_enabled on; | |
access_log off; | |
allow 127.0.0.1; | |
deny all; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment