temp
This commit is contained in:
39
k8s/xiongxiao.me/todos/nginx/git.xx.conf
Normal file
39
k8s/xiongxiao.me/todos/nginx/git.xx.conf
Normal file
@@ -0,0 +1,39 @@
|
||||
server {
|
||||
#填写绑定证书的域名
|
||||
server_name git.xiongxiao.me;
|
||||
#把http的域名请求转成https
|
||||
#rewrite ^(.*)$ https://${server_name}$1 permanent;
|
||||
# return 301 https://$host$request_uri;
|
||||
location / {
|
||||
# root /root/web;
|
||||
proxy_set_header HOST $host;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
#proxy_pass http://10.0.0.10:3000/;
|
||||
proxy_pass http://10.0.32.6:3000/;
|
||||
}
|
||||
client_max_body_size 2048M;
|
||||
|
||||
listen 443 ssl; # managed by Certbot
|
||||
ssl_certificate /etc/letsencrypt/live/git.xiongxiao.me/fullchain.pem; # managed by Certbot
|
||||
ssl_certificate_key /etc/letsencrypt/live/git.xiongxiao.me/privkey.pem; # managed by Certbot
|
||||
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
||||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
server {
|
||||
if ($host = git.xiongxiao.me) {
|
||||
return 301 https://$host$request_uri;
|
||||
} # managed by Certbot
|
||||
|
||||
|
||||
listen 80;
|
||||
server_name git.xiongxiao.me;
|
||||
return 404; # managed by Certbot
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user