new services: littlelink, matrix.to, yacy

This commit is contained in:
root 2022-11-06 05:22:37 -05:00
parent e20c1b5fd8
commit 8d4e13b8c3
5 changed files with 157 additions and 0 deletions

32
common/littlelink.conf Normal file
View File

@ -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; }

10
common/matrixto.conf Normal file
View File

@ -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;
}

28
conf.d/littlelink.conf Normal file
View File

@ -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;
}

33
conf.d/matrixto.conf Normal file
View File

@ -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;
}

54
conf.d/yacy.conf Normal file
View File

@ -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;
}