wpci + bbs + matrix darknet stuff

This commit is contained in:
root 2022-10-27 21:34:38 -04:00
parent 21927d6d64
commit b3298cdf61
4 changed files with 20 additions and 49 deletions

View File

@ -1,3 +1,6 @@
add_header Onion-Location http://ci.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
add_header X-I2P-Location http://vernp46vgdvbfjlxibqbmlk2wxckgjvnoj5ixjdkdr2n773mra4a.b32.i2p$request_uri;
location / {
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;

View File

@ -2,7 +2,7 @@ server {
listen 80;
listen [::]:80;
server_name bbs.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion;
server_name vern5pgpfjdplnz7yhqazesx62hrx6r6i4xvv4kjshwefwikkjjuvwad.onion;
subs_filter_types text/html text/css text/xml application/javascript text/plain;
subs_filter "ftelnet.vern.cc" "ftelnet.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion";

View File

@ -45,54 +45,6 @@ server {
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
include snippets/lets-encrypt.conf;
# listen 8449 default_server;
# listen [::]:8449 default_server;
server_name mtrx.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion;
add_header Onion-Location http://mtrx.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
subs_filter_types application/json;
subs_filter "{\"base_url\":\"https://mtrx.vern.cc/\"}" "{\"base_url\":\"https://mtrx.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion/\"}";
location ~ ^(/_matrix|/_synapse/client) {
# note: do not add a path (even a single /) after the port in `proxy_pass`,
# otherwise nginx will canonicalise the URI and cause signature verification
# errors.
proxy_pass http://localhost:8008;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $host;
# Nginx by default only allows file uploads up to 1M in size
# Increase client_max_body_size to match max_upload_size defined in homeserver.yaml
client_max_body_size 1024M;
}
## well-known
location /.well-known/matrix/support {
add_header Access-Control-Allow-Origin '*' always;
add_header Content-Type application/json;
return 200 '{"admins": [{"matrix_id": "@root:vern.cc", "email_address": "tildemaster@vern.cc", "role": "admin"}], "support_page": "https://matrix.to/#/#vern:vern.cc"}';
}
location /.well-known/matrix/server {
add_header Access-Control-Allow-Origin '*' always;
add_header Content-Type application/json;
return 200 '{"m.server": "mtrx.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion:80"}';
}
location /.well-known/matrix/client {
add_header Access-Control-Allow-Origin '*' always;
add_header Content-Type application/json;
return 200 '{"m.homeserver": {"base_url": "https://mtrx.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion:8008"}}';
}
}
server {
listen 11043;
listen [::]:11043;

View File

@ -1,3 +1,19 @@
server {
listen 80;
listen [::]:80;
server_name ci.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion;
include common/woodpeckerci.conf;
}
server {
listen 11068;
listen [::]:11068;
server_name vernp46vgdvbfjlxibqbmlk2wxckgjvnoj5ixjdkdr2n773mra4a.b32.i2p;
include common/woodpeckerci.conf;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;