Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save charlieporth1/c32986336ac39a71388008647c244128 to your computer and use it in GitHub Desktop.
Save charlieporth1/c32986336ac39a71388008647c244128 to your computer and use it in GitHub Desktop.
server {
listen ctp-vpn.local:80;
listen ctp-vpn.local:3000;
listen ctp-vpn.local:443 ssl;
listen ctp-vpn.local:27443 quic reuseport;
listen [::]:80;
listen [::]:3000;
listen [::]:443 ssl;
listen [::]:27443 quic reuseport;
server_name
mbps.ctptech.dev
mpbs.ctptech.dev
manual-browser-password-saver.ctptech.dev
manual-browsers-password-saver.ctptech.dev
manual-browser-password-savers.ctptech.dev
;
# access_log /var/log/nginx/mbps-access.log default buffer=64m flush=1s;
access_log /var/log/nginx/mbps-access.log default buffer=64m flush=5m;
error_log /var/log/nginx/mpbs-error.log;
# root OPTS
include snippets/security_locations.conf;
# SSL OPT
include snippets/ssl_cert.conf;
include snippets/ssl_opts.conf;
include snippets/ssl_oscp_opts.conf;
include snippets/ssl_auth.conf;
root /var/www/html/mbps/;
index index.html index.htm;
location / {
add_header Alt-Svc 'h3=":27443"; ma=86400'; # Advertise that HTTP/3 is available
try_files $uri $uri/ =404;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment