Move git.fukun.net nginx config into subdirectory with HTTPS redirect
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name git.fukun.net;
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
server_name git.fukun.net;
|
||||
|
||||
ssl_certificate /etc/nginx/ssl/git.fukun.net_bundle.crt;
|
||||
ssl_certificate_key /etc/nginx/ssl/git.fukun.net.key;
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
ssl_ciphers HIGH:!aNULL:!MD5;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1: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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user