From 8d4e13b8c31b1c3d7950b1ae5241b26f915d3d43 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 6 Nov 2022 05:22:37 -0500 Subject: [PATCH] new services: littlelink, matrix.to, yacy --- common/littlelink.conf | 32 +++++++++++++++++++++++++ common/matrixto.conf | 10 ++++++++ conf.d/littlelink.conf | 28 ++++++++++++++++++++++ conf.d/matrixto.conf | 33 ++++++++++++++++++++++++++ conf.d/yacy.conf | 54 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 157 insertions(+) create mode 100644 common/littlelink.conf create mode 100644 common/matrixto.conf create mode 100644 conf.d/littlelink.conf create mode 100644 conf.d/matrixto.conf create mode 100644 conf.d/yacy.conf diff --git a/common/littlelink.conf b/common/littlelink.conf new file mode 100644 index 0000000..06ad54e --- /dev/null +++ b/common/littlelink.conf @@ -0,0 +1,32 @@ +add_header Onion-Location http://ll.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri; +add_header X-I2P-Location http://vernhaphwpz47ngjmxqp7sq777terkkuadaor6oe65urxsy3e65a.b32.i2p$request_uri; +add_header X-Frame-Options "SAMEORIGIN"; +add_header X-Content-Type-Options "nosniff"; +root /var/www/littlelink-custom; +index index.php; + +charset utf-8; + +location / { + try_files $uri $uri/ /index.php?$query_string; +} + +location = /favicon.ico { access_log off; log_not_found off; } +location = /robots.txt { access_log off; log_not_found off; } + +error_page 404 /index.php; + +location ~ \.php$ { + fastcgi_pass unix:/var/run/php/php7.4-fpm.sock; + fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; + include snippets/fastcgi.conf; +} + +location ~ ^\. { deny all; } + +location ~ \.sqlite$ { deny all; } + +location ~ \.env$ { deny all; } + +location ~ /\.htaccess { allow all; } + diff --git a/common/matrixto.conf b/common/matrixto.conf new file mode 100644 index 0000000..5cd0da2 --- /dev/null +++ b/common/matrixto.conf @@ -0,0 +1,10 @@ +add_header Onion-Location http://mto.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri; +add_header X-I2P-Location http://vernzqlne5hobeijxz4g7u6zpejcdemrnqra2eg2sge3af5qp7qa.b32.i2p$request_uri; + +location / { + proxy_pass http://127.0.0.1:5039/; + 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; +} diff --git a/conf.d/littlelink.conf b/conf.d/littlelink.conf new file mode 100644 index 0000000..0cbb639 --- /dev/null +++ b/conf.d/littlelink.conf @@ -0,0 +1,28 @@ +server { + listen 80; + listen [::]:80; + + server_name ll.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion littlelink.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion; + + include common/littlelink.conf; +} + +server { + listen 11073; + listen [::]:11073; + server_name vernhaphwpz47ngjmxqp7sq777terkkuadaor6oe65urxsy3e65a.b32.i2p; + include common/littlelink.conf; +} +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + server_name ll.vern.cc littlelink.vern.cc; + include snippets/lets-encrypt.conf; + include common/littlelink.conf; +} +server { + listen 80; + listen [::]:80; + return 301 https://$host$request_uri; + server_name ll.vern.cc littlelink.vern.cc; +} diff --git a/conf.d/matrixto.conf b/conf.d/matrixto.conf new file mode 100644 index 0000000..8be190f --- /dev/null +++ b/conf.d/matrixto.conf @@ -0,0 +1,33 @@ +server { + listen 80; + listen [::]:80; + + server_name mto.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion; + + include common/matrixto.conf; +} + +server { + listen 11074; + listen [::]:11074; + + server_name vernzqlne5hobeijxz4g7u6zpejcdemrnqra2eg2sge3af5qp7qa.b32.i2p; + + include common/matrixto.conf; +} + +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + server_name mto.vern.cc; + include snippets/lets-encrypt.conf; + include snippets/headers.conf; + include common/matrixto.conf; +} + +server { + listen 80; + listen [::]:80; + return 301 https://$host$request_uri; + server_name mto.vern.cc; +} diff --git a/conf.d/yacy.conf b/conf.d/yacy.conf new file mode 100644 index 0000000..94dcef3 --- /dev/null +++ b/conf.d/yacy.conf @@ -0,0 +1,54 @@ +server { + listen 80; + listen [::]:80; + + server_name yc.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion yacy.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion; + + include common/yacy.conf; + + location / { + proxy_pass http://127.0.0.1:8181/; + proxy_redirect off; + proxy_set_header Host $host; + } +} + +server { + listen 11038; + listen [::]:11038; + + server_name vernxiu4oiyb6t2impixu7kqot4irhdr3pzmgszbaxjbpwblapeq.b32.i2p; + + include common/yacy.conf; + + location / { + proxy_pass http://127.0.0.1:8282/; + proxy_redirect off; + proxy_set_header Host $host; + } +} + +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + + server_name yc.vern.cc yacy.vern.cc; + + include snippets/lets-encrypt.conf; + include snippets/headers.conf; + + include common/yacy.conf; + + location / { + proxy_pass http://127.0.0.1:8090/; + proxy_redirect off; + proxy_set_header Host $host; + } +} + +server { + listen 80; + listen [::]:80; + return 301 https://$host$request_uri; + server_name yc.vern.cc yacy.vern.cc; +}