Last active
May 7, 2024 23:26
-
-
Save charlieporth1/c32986336ac39a71388008647c244128 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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