configurations/g18/rootfs/etc/nginx/sites-available/default

104 lines
2.4 KiB
Plaintext
Raw Normal View History

2023-05-10 22:49:10 +08:00
server {
listen 80 default_server;
listen [::]:80 default_server;
2024-04-16 00:36:48 +08:00
listen 443 http2 ssl default_server;
listen [::]:443 http2 ssl default_server;
server_name _;
2023-05-10 22:49:10 +08:00
2024-04-16 00:36:48 +08:00
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;
2023-05-10 22:49:10 +08:00
}
server {
listen 80;
listen [::]:80;
listen 443 http2 ssl;
listen [::]:443 http2 ssl;
2024-04-16 00:36:48 +08:00
server_name git.nasp.fit;
2023-05-10 22:49:10 +08:00
include enable-ssl.conf;
2024-04-16 00:36:48 +08:00
include ssl-for-nasp_fit.conf;
2023-05-10 22:49:10 +08:00
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;
2024-04-16 00:36:48 +08:00
server_name status.nasp.fit;
2023-05-10 22:49:10 +08:00
include enable-ssl.conf;
2024-04-16 00:36:48 +08:00
include ssl-for-nasp_fit.conf;
2023-05-10 22:49:10 +08:00
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";
}
2024-04-16 00:36:48 +08:00
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;
}
}