added ssl to gitlab

This commit is contained in:
Martin Donnelly 2016-06-29 11:52:19 +01:00
parent de7b2be4b3
commit 8fc1ab6173

View File

@ -1,22 +1,29 @@
server {
listen [::]:80;
listen 80;
# listen on both hosts
server_name gitlab.silvrtree.co.uk;
client_max_body_size 50m;
#Configures the publicly served root directory
#Configures the index file to be served
root /;
index index.html index.htm;
# include snippets/cache.conf;
# and redirect to the https host (declared below)
# avoiding http://www -> https://www -> https:// chain.
return 301 https://gitlab.silvrtree.co.uk$request_uri;
}
server {
listen [::]:443 ssl spdy;
listen 443 ssl spdy;
server_name gitlab.silvrtree.co.uk;
include secure/ssl.conf;
#These lines create a bypass for certain pathnames
#www.example.com/test.js is now routed to port 3000
#instead of port 80
location / {
proxy_pass http://localhost:10080;
proxy_set_header Host $host;
client_max_body_size 50m;
}
}