idfk arya did some stupid shit

This commit is contained in:
root 2022-08-17 04:02:16 -04:00
parent f77f4155c5
commit 752188d49f
28 changed files with 405 additions and 7 deletions

22
common/cinny.conf Normal file
View File

@ -0,0 +1,22 @@
add_header Onion-Location http://cinny.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
root /var/www/cinny;
index index.html;
ssi on;
location / {
try_files $uri $uri/ =404;
}
location = /index.html {
add_header Cache-Control "no-cache";
}
location = /version {
add_header Cache-Control "no-cache";
}
# covers config.json and config.hostname.json requests as it is prefix.
location /config {
add_header Cache-Control "no-cache";
}
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;

10
common/conversejs.conf Normal file
View File

@ -0,0 +1,10 @@
add_header Onion-Location http://xmpp.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
location / {
client_max_body_size 100m;
proxy_pass https://vern.cc:5281/conversejs/; # The / is important!
proxy_redirect off;
proxy_set_header Host vern.cc;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}

22
common/fluffychat.conf Normal file
View File

@ -0,0 +1,22 @@
add_header Onion-Location http://fluffychat.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
root /var/www/fluffychat;
index index.html;
ssi on;
location / {
try_files $uri $uri/ =404;
}
location = /index.html {
add_header Cache-Control "no-cache";
}
location = /version {
add_header Cache-Control "no-cache";
}
# covers config.json and config.hostname.json requests as it is prefix.
location /config {
add_header Cache-Control "no-cache";
}
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;

22
common/hydrogen.conf Normal file
View File

@ -0,0 +1,22 @@
add_header Onion-Location http://hydrogen.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
root /var/www/hydrogen;
index index.html;
ssi on;
location / {
try_files $uri $uri/ =404;
}
location = /index.html {
add_header Cache-Control "no-cache";
}
location = /version {
add_header Cache-Control "no-cache";
}
# covers config.json and config.hostname.json requests as it is prefix.
location /config {
add_header Cache-Control "no-cache";
}
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;

15
common/jellyfin.conf Normal file
View File

@ -0,0 +1,15 @@
add_header Onion-Location http://jf.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
client_max_body_size 5120M;
location / {
proxy_pass http://localhost:8096/; # The / is important!
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Protocol $scheme;
proxy_set_header X-Forwarded-Host $http_host;
proxy_buffering off;
}

View File

@ -1,5 +1,7 @@
add_header Onion-Location http://lr.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
error_log off;
location / {
proxy_pass http://localhost:2501/; # The / is important!
proxy_http_version 1.1;

View File

@ -1,5 +1,5 @@
add_header Onion-Location http://mirror.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
root /var/mirror/mirror;
root /var/mirror;
ssi on;
location / {

View File

@ -1,4 +1,6 @@
add_header Onion-Location http://quora.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
add_header Onion-Location http://qr.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
access_log /var/log/nginx/quetre-access.log;
location / {
proxy_pass http://localhost:2498/; # The / is important!

22
common/schildi.conf Normal file
View File

@ -0,0 +1,22 @@
add_header Onion-Location http://schildi.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
root /var/www/schildi;
index index.html;
ssi on;
location / {
try_files $uri $uri/ =404;
}
location = /index.html {
add_header Cache-Control "no-cache";
}
location = /version {
add_header Cache-Control "no-cache";
}
# covers config.json and config.hostname.json requests as it is prefix.
location /config {
add_header Cache-Control "no-cache";
}
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;

21
common/vikunja.conf Normal file
View File

@ -0,0 +1,21 @@
location / {
root /var/www/vikunja;
try_files $uri $uri/ /;
index index.html index.htm;
}
location ~* ^/(api|dav|\.well-known)/ {
proxy_pass http://127.0.0.1:3456;
client_max_body_size 20M;
}
gzip on;
gzip_disable "msie6";
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_min_length 256;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/vnd.ms-fontobject application/x-font-ttf font/opentype image/svg+xml;

View File

@ -64,7 +64,7 @@ location ~ ^/(~|u/)(?<user>[\w-]+)(?<user_uri>/.*)?$ {
autoindex_exact_size off;
subs_filter_types text/html text/css text/xml;
subs_filter (((file|src|href)=|url\()["']?)/([^/]) $1/~$user/$4 r;
subs_filter (((file|virtual|src|href)=|url\()["']?)/([^/]) $1/~$user/$4 r;
location ~ \.php$ {
fastcgi_pass 192.168.122.30:9000;
@ -91,6 +91,7 @@ location /wiki {
index index.html index.htm;
try_files $uri $uri/;
}
location /wiki/ikiwiki.cgi {
fastcgi_pass unix:/tmp/fcgi.socket;
fastcgi_index ikiwiki.cgi;
@ -98,3 +99,7 @@ location /wiki/ikiwiki.cgi {
fastcgi_param DOCUMENT_ROOT /home/ikiwiki/public_html/vernwiki;
include /etc/nginx/fastcgi_params;
}
location ~ ^/(wp-(admin|login\.php|config\.php)|\.env)$ {
return 301 http://fsn.icmp.hetzner.com/10GB.bin;
}

View File

@ -1,6 +1,6 @@
add_header Onion-Location http://whoogle.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
access_log off;
access_log /var/log/nginx/whoogle-access.log;
error_log /var/log/nginx/error.log crit;
location / {

View File

@ -18,7 +18,7 @@ http {
types_hash_max_size 2048;
# server_tokens off;
server_names_hash_bucket_size 128;
server_names_hash_bucket_size 256;
# server_name_in_redirect off;
include /etc/nginx/mime.types;

View File

@ -19,7 +19,7 @@ server {
server {
listen 80;
listen [::]:80;
server_name 0.vern.cc;
server_name 0.vern.cc vern0.me;
location / {
return 301 https://$host$request_uri;
@ -29,9 +29,23 @@ server {
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name 0.vern.cc;
include snippets/lets-encrypt.conf;
include snippets/headers.conf;
include common/0x0.conf;
include common/0x0.conf;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name vern0.me;
ssl_certificate_key /etc/letsencrypt/live/vern0.me/privkey.pem;
ssl_certificate /etc/letsencrypt/live/vern0.me/fullchain.pem;
include snippets/headers.conf;
include common/0x0.conf;
}

View File

@ -0,0 +1,34 @@
server {
listen 80;
listen [::]:80;
server_name cn.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion cinny.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion;
include common/cinny.conf;
}
server {
listen 11030;
listen [::]:11030;
server_name vernyaourawd4avjf7ye6g43pqovys5wqdr672kervjpev353klq.b32.i2p;
include common/cinny.conf;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name cn.vern.cc cinny.vern.cc;
include snippets/lets-encrypt.conf;
include snippets/headers.conf;
include common/cinny.conf;
}
server {
listen 80;
listen [::]:80;
server_name cn.vern.cc cinny.vern.cc;
return 301 https://$host$request_uri;
}

View File

@ -0,0 +1,32 @@
server {
listen 80;
listen [::]:80;
server_name xmpp.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion conversejs.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion cjs.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion;
include common/conversejs.conf;
}
server {
listen 11036;
listen [::]:11036;
server_name vernd6f2dxbwfwp4fbkrdz75k2h2wyudmvwrqkrgkawjjrm72z3a.b32.i2p;
include common/conversejs.conf;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name xmpp.vern.cc conversejs.vern.cc cjs.vern.cc;
include snippets/lets-encrypt.conf;
include snippets/headers.conf;
include common/conversejs.conf;
}
server {
listen 80;
listen [::]:80;
server_name xmpp.vern.cc conversejs.vern.cc cjs.vern.cc;
return 301 https://$host$request_uri;
}

View File

@ -0,0 +1,35 @@
server {
listen 80;
listen [::]:80;
server_name fc.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion fluffychat.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion;
include common/fluffychat.conf;
}
server {
listen 11032;
listen [::]:11032;
server_name vernkas3nvhxvfzkyz4rvzul3c6gvrdtuo7lzvvoudcatmjqa5ea.b32.i2p;
include common/fluffychat.conf;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name fc.vern.cc fluffychat.vern.cc;
include snippets/lets-encrypt.conf;
include snippets/headers.conf;
include common/fluffychat.conf;
}
server {
listen 80;
listen [::]:80;
server_name fc.vern.cc fluffychat.vern.cc;
return 301 https://$host$request_uri;
}

View File

@ -0,0 +1,34 @@
server {
listen 80;
listen [::]:80;
server_name h2.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion hydrogen.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion;
include common/hydrogen.conf;
}
server {
listen 11031;
listen [::]:11031;
server_name vernbzrr62wtwvddjcpo5stg7mp6mvoi7y2hkdekvextwb66mj5q.b32.i2p;
include common/hydrogen.conf;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name h2.vern.cc hydrogen.vern.cc;
include snippets/lets-encrypt.conf;
include snippets/headers.conf;
include common/hydrogen.conf;
}
server {
listen 80;
listen [::]:80;
server_name h2.vern.cc hydrogen.vern.cc;
return 301 https://$host$request_uri;
}

View File

@ -0,0 +1,33 @@
server {
listen 80;
listen [::]:80;
server_name jf.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion jellyfin.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion;
include common/jellyfin.conf;
}
server {
listen 11035;
listen [::]:11035;
server_name vernaaamyu2hcxaoscotjmivcqhqdn77bbftpbilmrbcxqt6f32a.b32.i2p;
include common/jellyfin.conf;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name jf.vern.cc jellyfin.vern.cc;
include snippets/lets-encrypt.conf;
include snippets/headers.conf;
include common/jellyfin.conf;
}
server {
listen 80;
listen [::]:80;
return 301 https://$host$request_uri;
server_name jf.vern.cc jellyfin.vern.cc;
}

View File

@ -0,0 +1,34 @@
server {
listen 80;
listen [::]:80;
server_name sh.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion schildi.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion;
include common/schildi.conf;
}
server {
listen 11033;
listen [::]:11033;
server_name vernxrhodyp3ayvrx4aeqqzojfsyk33oqujdnrbyd2y6l44elolq.b32.i2p;
include common/schildi.conf;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name sh.vern.cc schildi.vern.cc;
include snippets/lets-encrypt.conf;
include snippets/headers.conf;
include common/schildi.conf;
}
server {
listen 80;
listen [::]:80;
server_name sh.vern.cc schildi.vern.cc;
return 301 https://$host$request_uri;
}

View File

@ -0,0 +1,32 @@
server {
listen 80;
listen [::]:80;
server_name vk.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion todo.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion;
include common/vikunja.conf;
}
server {
listen 11029;
listen [::]:11029;
server_name verniioll6ezxh2ns3l2hbt76zlklmwqguomnjgg37olnmbhgodq.b32.i2p;
include common/vikunja.conf;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name vk.vern.cc todo.vern.cc;
include snippets/lets-encrypt.conf;
include snippets/headers.conf;
include common/vikunja.conf;
}
server {
listen 80;
listen [::]:80;
server_name vk.vern.cc todo.vern.cc;
return 301 https://$host$request_uri;
}

1
sites-enabled/cinny.conf Symbolic link
View File

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

View File

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

View File

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

1
sites-enabled/hydrogen.conf Symbolic link
View File

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

1
sites-enabled/jellyfin.conf Symbolic link
View File

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

1
sites-enabled/schildi.conf Symbolic link
View File

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

1
sites-enabled/vikunja.conf Symbolic link
View File

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