From d0660580c413291c355492ab6d8e28835c76f2de Mon Sep 17 00:00:00 2001 From: root Date: Mon, 24 Oct 2022 04:54:08 -0400 Subject: [PATCH] add beatbump --- common/beatbump.conf | 12 ++++++++++++ conf.d/beatbump.conf | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 common/beatbump.conf create mode 100644 conf.d/beatbump.conf diff --git a/common/beatbump.conf b/common/beatbump.conf new file mode 100644 index 0000000..f51948d --- /dev/null +++ b/common/beatbump.conf @@ -0,0 +1,12 @@ +add_header Onion-Location http://bb.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri; +add_header X-I2P-Location http://vern6inmbjzqpecx4kpkq5sln3cqqrfuxfzh4au3tpxbsfbwbnta.b32.i2p$request_uri; +subs_filter "yn.vern.cc" "$host"; + +location / { + proxy_pass http://127.0.0.1:7454/; + proxy_redirect off; + proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_cookie_path / "/; Secure; HttpOnly; SameSite=lax"; +} diff --git a/conf.d/beatbump.conf b/conf.d/beatbump.conf new file mode 100644 index 0000000..3a194e0 --- /dev/null +++ b/conf.d/beatbump.conf @@ -0,0 +1,32 @@ +server { + listen 80; + listen [::]:80; + + server_name bb.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion beatbump.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion; + include common/beatbump.conf; +} + +server { + listen 11057; + listen [::]:11057; + + server_name vern6inmbjzqpecx4kpkq5sln3cqqrfuxfzh4au3tpxbsfbwbnta.b32.i2p; + + include common/beatbump.conf; +} + +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + server_name bb.vern.cc beatbump.vern.cc; + include common/beatbump.conf; + include snippets/lets-encrypt.conf; +} + +server { + listen 80; + listen [::]:80; + return 301 https://$host$request_uri; + server_name bb.vern.cc beatbump.vern.cc; + +}