nasp.ob.ac.cn -> nasp.fit
This commit is contained in:
@@ -1,8 +1,23 @@
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
listen 443 http2 ssl default_server;
|
||||
listen [::]:443 http2 ssl default_server;
|
||||
server_name _;
|
||||
|
||||
return 404;
|
||||
include enable-ssl.conf;
|
||||
include ssl-for-nasp_fit.conf;
|
||||
|
||||
location / {
|
||||
return 404;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name git.ob.ac.cn git.nasp.ob.ac.cn;
|
||||
return 301 https://git.nasp.fit$request_uri;
|
||||
}
|
||||
|
||||
server {
|
||||
@@ -10,10 +25,10 @@ server {
|
||||
listen [::]:80;
|
||||
listen 443 http2 ssl;
|
||||
listen [::]:443 http2 ssl;
|
||||
server_name git.nasp.ob.ac.cn;
|
||||
server_name git.nasp.fit;
|
||||
|
||||
include enable-ssl.conf;
|
||||
include ssl-for-git_nasp_ob_ac_cn.conf;
|
||||
include ssl-for-nasp_fit.conf;
|
||||
|
||||
location / {
|
||||
client_max_body_size 100G;
|
||||
@@ -30,10 +45,10 @@ server {
|
||||
listen [::]:80;
|
||||
listen 443 http2 ssl;
|
||||
listen [::]:443 http2 ssl;
|
||||
server_name nasp.ob.ac.cn;
|
||||
server_name status.nasp.fit;
|
||||
|
||||
include enable-ssl.conf;
|
||||
include ssl-for-nasp_ob_ac_cn.conf;
|
||||
include ssl-for-nasp_fit.conf;
|
||||
|
||||
location / {
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
@@ -44,4 +59,45 @@ server {
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
}
|
||||
}
|
||||
location /mirrors {
|
||||
autoindex on;
|
||||
autoindex_localtime on;
|
||||
autoindex_exact_size off;
|
||||
add_header Cache-Control no-cache;
|
||||
root /data0/public;
|
||||
index index.html;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
listen 443 http2 ssl;
|
||||
listen [::]:443 http2 ssl;
|
||||
server_name grafana.nasp.fit;
|
||||
|
||||
include enable-ssl.conf;
|
||||
include ssl-for-nasp_fit.conf;
|
||||
|
||||
location / {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_pass http://localhost:3002;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name 192.168.16.*;
|
||||
root /data0/public;
|
||||
index index.html;
|
||||
|
||||
location / {
|
||||
autoindex on;
|
||||
autoindex_localtime on;
|
||||
autoindex_exact_size off;
|
||||
add_header Cache-Control no-cache;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user