Created
October 19, 2013 20:12
-
-
Save spuder/7060928 to your computer and use it in GitHub Desktop.
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
#Here are the nginx settings without ssl | |
server { | |
listen *:80 default_server; | |
server_name <%= @gitlab_domain %>; | |
server_tokens off; | |
root /nowhere; | |
rewrite ^ https://$server_name$request_uri permanent; | |
#Here are the nginx settings with ssl | |
server { | |
listen *:443 ssl; # e.g., listen 192.168.1.1:80; | |
server_name foo; # e.g., server_name source.example.com; | |
server_tokens off; | |
root /home/git/gitlab/public; | |
ssl on; | |
ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem; | |
ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key; | |
ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2; | |
ssl_ciphers AES:HIGH:!ADH:!MDF; | |
ssl_prefer_server_ciphers on; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment