47 lines
1.2 KiB
Plaintext
47 lines
1.2 KiB
Plaintext
|
server {
|
||
|
listen 80 default_server;
|
||
|
listen [::]:80 default_server;
|
||
|
|
||
|
return 404;
|
||
|
}
|
||
|
|
||
|
server {
|
||
|
listen 80;
|
||
|
listen [::]:80;
|
||
|
listen 443 http2 ssl;
|
||
|
listen [::]:443 http2 ssl;
|
||
|
server_name git.nasp.ob.ac.cn;
|
||
|
|
||
|
include enable-ssl.conf;
|
||
|
include ssl-for-git_nasp_ob_ac_cn.conf;
|
||
|
|
||
|
location / {
|
||
|
client_max_body_size 100G;
|
||
|
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 80;
|
||
|
listen [::]:80;
|
||
|
listen 443 http2 ssl;
|
||
|
listen [::]:443 http2 ssl;
|
||
|
server_name nasp.ob.ac.cn;
|
||
|
|
||
|
include enable-ssl.conf;
|
||
|
include ssl-for-nasp_ob_ac_cn.conf;
|
||
|
|
||
|
location / {
|
||
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
proxy_set_header Host $host;
|
||
|
proxy_pass http://localhost:3001/;
|
||
|
proxy_http_version 1.1;
|
||
|
proxy_set_header Upgrade $http_upgrade;
|
||
|
proxy_set_header Connection "upgrade";
|
||
|
}
|
||
|
}
|