Looks nice now
This commit is contained in:
parent
7977d297ac
commit
c930c040af
11 changed files with 97 additions and 189 deletions
|
|
@ -1,39 +1,7 @@
|
|||
server {
|
||||
if ($host = www.git.asxp.io) {
|
||||
return 301 https://$host$request_uri;
|
||||
} # managed by Certbot
|
||||
|
||||
|
||||
if ($host = git.asxp.io) {
|
||||
return 301 https://$host$request_uri;
|
||||
} # managed by Certbot
|
||||
|
||||
|
||||
listen 80;
|
||||
server_name www.git.asxp.io git.asxp.io;
|
||||
listen [::]:80;
|
||||
server_name www.git.asxp.io git.asxp.io;
|
||||
|
||||
server_name _;
|
||||
return 444;
|
||||
|
||||
location / {
|
||||
proxy_pass http://localhost:3000;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
server_name git.asxp.io;
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/asxp.io/fullchain.pem; # managed by Certbot
|
||||
ssl_certificate_key /etc/letsencrypt/live/asxp.io/privkey.pem; # managed by Certbot
|
||||
server_name git.asxp.io www.git.asxp.io;
|
||||
|
||||
location / {
|
||||
proxy_pass http://localhost:3000;
|
||||
|
|
@ -42,4 +10,9 @@ server {
|
|||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
}
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/asxp.io/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/asxp.io/privkey.pem;
|
||||
include /etc/letsencrypt/options-ssl-nginx.conf;
|
||||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue