mirror of
https://gitlab.silvrtree.co.uk/martind2000/nginx-profiles.git
synced 2025-01-10 21:15:08 +00:00
added ssl to gitlab
This commit is contained in:
parent
de7b2be4b3
commit
8fc1ab6173
@ -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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user