2016-06-29 10:48:51 +00:00
|
|
|
server {
|
2016-06-29 10:52:19 +00:00
|
|
|
listen [::]:80;
|
2016-06-29 10:48:51 +00:00
|
|
|
listen 80;
|
2016-06-29 10:52:19 +00:00
|
|
|
|
|
|
|
# listen on both hosts
|
2016-06-29 10:48:51 +00:00
|
|
|
server_name gitlab.silvrtree.co.uk;
|
|
|
|
|
2016-06-29 10:52:19 +00:00
|
|
|
# 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;
|
|
|
|
|
2016-06-29 10:48:51 +00:00
|
|
|
|
|
|
|
location / {
|
|
|
|
proxy_pass http://localhost:10080;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
client_max_body_size 50m;
|
|
|
|
}
|
|
|
|
|
2016-06-29 10:52:19 +00:00
|
|
|
|
2016-06-29 10:48:51 +00:00
|
|
|
}
|