Attempt to fix i2p mastodon (didnt work)

This commit is contained in:
root 2022-07-28 07:22:16 -04:00
parent 2b25af28d6
commit de29faaf7d
4 changed files with 46 additions and 1 deletions

11
common/0x0.conf Normal file
View File

@ -0,0 +1,11 @@
client_max_body_size 1024M;
location / {
include proxy_params;
proxy_ssl_name $http_host;
proxy_ssl_server_name on;
proxy_pass https://0.vern.cc;
}
location /up {
internal;
}

28
sites-available/0x0.conf Normal file
View File

@ -0,0 +1,28 @@
server {
listen 80;
listen [::]:80;
server_name 0.vern.cc;
location / {
return 307 https://$host$request_uri;
}
}
server {
listen 443 ssl http2;
server_name 0.vern.cc;
include /etc/nginx/snippets/lets-encrypt.conf;
root /home/0x0/0x0;
location / {
include uwsgi_params;
uwsgi_param UWSGI_SCHEME $scheme;
# make sure this matches the port you're running uwsgi on
uwsgi_pass 127.0.0.1:3031;
}
location /up {
internal;
}
}

View File

@ -17,10 +17,15 @@ server {
listen 80;
listen [::]:80;
server_name fedi.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion mastodon.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion;
include common/mastodon.conf;
}
server {
listen 11007;
listen [::]:11007;
server_name fedi.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion mastodon.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion;
server_name vernccxro6qjs2fmwp2as5eavlnz6uzsxqqnhk3skkhpszp73ubq.b32.i2p;
include common/mastodon.conf;

1
sites-enabled/0x0.conf Symbolic link
View File

@ -0,0 +1 @@
/etc/nginx/sites-available/0x0.conf