Blog, Remove ikiwiki, matrix darknet
This commit is contained in:
parent
aa1ef1b2e0
commit
34446ff66c
|
@ -30,18 +30,6 @@ location @extensionless-php {
|
|||
rewrite ^(.*)$ $1.php last;
|
||||
}
|
||||
|
||||
location /.well-known/matrix/server {
|
||||
default_type application/json;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
return 200 '{"m.server": "mtrx.vern.cc:443"}';
|
||||
}
|
||||
|
||||
location /.well-known/matrix/client {
|
||||
default_type application/json;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
return 200 '{"m.homeserver": {"base_url": "https://mtrx.vern.cc"}, "m.identity_server": { "base_url": "https://vector.im" }}';
|
||||
}
|
||||
|
||||
location ~ ^(/media/|/canaries/)$ {
|
||||
#autoindex on;
|
||||
fancyindex on;
|
||||
|
@ -86,20 +74,10 @@ location ~ ^/(~|u/)(?<user>[\w-]+)(?<user_uri>/.*)?$ {
|
|||
}
|
||||
}
|
||||
|
||||
location /wiki {
|
||||
root /home/ikiwiki/public_html/vernwiki;
|
||||
index index.html index.htm;
|
||||
try_files $uri $uri/;
|
||||
}
|
||||
|
||||
location /wiki/ikiwiki.cgi {
|
||||
fastcgi_pass unix:/tmp/fcgi.socket;
|
||||
fastcgi_index ikiwiki.cgi;
|
||||
fastcgi_param SCRIPT_FILENAME /home/ikiwiki/public_html/vernwiki/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;
|
||||
}
|
||||
location /blog {
|
||||
subs_filter "Find the source code for this website on" "Find the source code for this blog on";
|
||||
subs_filter "//git.vern.cc/vern/website" "//git.vern.cc/vern/blog";
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ server {
|
|||
location /.well-known/matrix/client {
|
||||
add_header Access-Control-Allow-Origin '*' always;
|
||||
add_header Content-Type application/json;
|
||||
return 200 '{"m.homeserver": {"base_url": "http://mtrx.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion"}}';
|
||||
return 200 '{"m.homeserver": {"base_url": "http://mtrx.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion:8008"}}';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -82,7 +82,7 @@ server {
|
|||
location /.well-known/matrix/client {
|
||||
add_header Access-Control-Allow-Origin '*' always;
|
||||
add_header Content-Type application/json;
|
||||
return 200 '{"m.homeserver": {"base_url": "http://verndnomc4cnte4aw7yrfpse33vrw2nlwoxozxmf77zqquk6ea7q.b32.i2p"}}';
|
||||
return 200 '{"m.homeserver": {"base_url": "http://verndnomc4cnte4aw7yrfpse33vrw2nlwoxozxmf77zqquk6ea7q.b32.i2p:8008"}}';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,9 +1,42 @@
|
|||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
|
||||
server_name verncceu2kgz54wi7r5jatgmx2mqtsh3knxhiy4m5shescuqtqfa.b32.i2p;
|
||||
|
||||
location /.well-known/matrix/server {
|
||||
default_type application/json;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
return 200 '{"m.server": "verndnomc4cnte4aw7yrfpse33vrw2nlwoxozxmf77zqquk6ea7q.b32.i2p:80"}';
|
||||
}
|
||||
|
||||
location /.well-known/matrix/client {
|
||||
default_type application/json;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
return 200 '{"m.homeserver": {"base_url": "http://verndnomc4cnte4aw7yrfpse33vrw2nlwoxozxmf77zqquk6ea7q.b32.i2p:8008"}}';
|
||||
}
|
||||
subs_filter "wiki.vern.cc" "vernknid6kpyzaghegtnypzxe2nx643zrfc4jivh2tlna5m5jvcq.b32.i2p"
|
||||
include common/website.conf;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
|
||||
server_name vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion www.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion;
|
||||
server_name verncceu2kgz54wi7r5jatgmx2mqtsh3knxhiy4m5shescuqtqfa.b32.i2p;
|
||||
|
||||
location /.well-known/matrix/server {
|
||||
default_type application/json;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
return 200 '{"m.server": "mtrx.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion:80"}';
|
||||
}
|
||||
|
||||
location /.well-known/matrix/client {
|
||||
default_type application/json;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
return 200 '{"m.homeserver": {"base_url": "http://mtrx.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion:8008"}}';
|
||||
}
|
||||
subs_filter "wiki.vern.cc" "wiki.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion";
|
||||
|
||||
include common/website.conf;
|
||||
}
|
||||
|
@ -15,6 +48,19 @@ server {
|
|||
server_name www.vern.cc vern.cc;
|
||||
include snippets/lets-encrypt.conf;
|
||||
include snippets/headers.conf;
|
||||
|
||||
location /.well-known/matrix/server {
|
||||
default_type application/json;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
return 200 '{"m.server": "mtrx.vern.cc:443"}';
|
||||
}
|
||||
|
||||
location /.well-known/matrix/client {
|
||||
default_type application/json;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
return 200 '{"m.homeserver": {"base_url": "https://mtrx.vern.cc"}, "m.identity_server": { "base_url": "https://vector.im" }}';
|
||||
}
|
||||
|
||||
include common/website.conf;
|
||||
}
|
||||
|
||||
|
@ -24,3 +70,18 @@ server {
|
|||
return 301 https://$host$request_uri;
|
||||
server_name www.vern.cc vern.cc;
|
||||
}
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
listen 443;
|
||||
listen [::]:443;
|
||||
return 301 https://vern.cc/blog$request_uri;
|
||||
server_name blog.vern.cc;
|
||||
}
|
||||
server {
|
||||
server_name blog.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion;
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
return 301 http://vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion/blog$request_uri;
|
||||
add_header Onion-Location http://blog.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue