Add spacebar server block
This commit is contained in:
parent
bee99a4d55
commit
cf59851a5e
|
@ -0,0 +1,50 @@
|
|||
server {
|
||||
access_log /var/log/nginx/api.spacebar.access.log combined;
|
||||
error_log /var/log/nginx/api.spacebar.error.log;
|
||||
|
||||
server_name api.spacebar.zzls.xyz;
|
||||
include configs/general.conf;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:3001;
|
||||
proxy_set_header Host $host;
|
||||
proxy_pass_request_headers on;
|
||||
add_header Last-Modified $date_gmt;
|
||||
add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-Proto https;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header X-Forwarded-Host $remote_addr;
|
||||
proxy_no_cache 1;
|
||||
proxy_cache_bypass 1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
|
||||
}
|
||||
|
||||
include configs/securityheaders.conf;
|
||||
# QUIC
|
||||
add_header Alt-Svc 'h3=":443"; ma=86400';
|
||||
|
||||
|
||||
listen 443 ssl http2;
|
||||
listen 443 http3; # managed by Certbot
|
||||
ssl_certificate /etc/letsencrypt/live/api.spacebar.zzls.xyz/fullchain.pem; # managed by Certbot
|
||||
ssl_certificate_key /etc/letsencrypt/live/api.spacebar.zzls.xyz/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 = api.spacebar.zzls.xyz) {
|
||||
return 301 https://$host$request_uri;
|
||||
} # managed by Certbot
|
||||
|
||||
|
||||
listen 80;
|
||||
|
||||
server_name api.spacebar.zzls.xyz;
|
||||
return 404; # managed by Certbot
|
||||
|
||||
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
server {
|
||||
access_log /dev/null;
|
||||
error_log /dev/null;
|
||||
access_log /var/log/nginx/inv.zzls.xyz.access.log;
|
||||
error_log /var/log/nginx/inv.zzls.xyz.error.log;
|
||||
|
||||
server_name inv.zzls.xyz;
|
||||
include configs/general.conf;
|
||||
|
|
|
@ -0,0 +1,38 @@
|
|||
server {
|
||||
access_log /var/log/nginx/spacebar.access.log combined;
|
||||
|
||||
server_name spacebar.zzls.xyz;
|
||||
include configs/general.conf;
|
||||
root /var/www/spacebar-client;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
#include configs/proxyheaders.conf;
|
||||
}
|
||||
|
||||
include configs/securityheaders.conf;
|
||||
# QUIC
|
||||
add_header Alt-Svc 'h3=":443"; ma=86400';
|
||||
|
||||
|
||||
listen 443 ssl http2;
|
||||
listen 443 http3; # managed by Certbot
|
||||
ssl_certificate /etc/letsencrypt/live/spacebar.zzls.xyz/fullchain.pem; # managed by Certbot
|
||||
ssl_certificate_key /etc/letsencrypt/live/spacebar.zzls.xyz/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 = spacebar.zzls.xyz) {
|
||||
return 301 https://$host$request_uri;
|
||||
} # managed by Certbot
|
||||
|
||||
|
||||
listen 80;
|
||||
|
||||
server_name spacebar.zzls.xyz;
|
||||
return 404; # managed by Certbot
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue