migrate: kid; matrix, firefish, search engine
This commit is contained in:
parent
a12c81159a
commit
509afb52a8
25 changed files with 699 additions and 0 deletions
|
|
@ -0,0 +1,21 @@
|
|||
server {
|
||||
listen 80;
|
||||
server_name kid.ixvd.net;
|
||||
|
||||
# SSL is managed by certbot, no need for a ssl listen; it will be generated automagically!
|
||||
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
# default html page
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html index.htm;
|
||||
}
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
server {
|
||||
listen 80;
|
||||
server_name fedi.ixvd.net;
|
||||
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
location / {
|
||||
proxy_pass http://firefish:3000$request_uri;
|
||||
}
|
||||
}
|
||||
27
servers/kid/docker-compose.d/custom/nginx/conf.d/matrix.conf
Normal file
27
servers/kid/docker-compose.d/custom/nginx/conf.d/matrix.conf
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
server {
|
||||
listen 80;
|
||||
server_name matrix.ixvd.net;
|
||||
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_read_timeout 600;
|
||||
|
||||
location = / {
|
||||
return 302 https://cinny.ixvd.net;
|
||||
}
|
||||
|
||||
# matrix
|
||||
location /.well-known/matrix/server {
|
||||
return 200 '{ "m.server": "matrix.ixvd.net:443" }';
|
||||
}
|
||||
|
||||
location /.well-known/matrix/client {
|
||||
add_header Access-Control-Allow-Origin '*';
|
||||
return 200 '{ "m.homeserver": { "base_url": "https://matrix.ixvd.net" } }';
|
||||
}
|
||||
|
||||
location /_matrix {
|
||||
proxy_pass http://conduit:6167;
|
||||
client_max_body_size 0;
|
||||
}
|
||||
}
|
||||
16
servers/kid/docker-compose.d/custom/nginx/conf.d/search.conf
Normal file
16
servers/kid/docker-compose.d/custom/nginx/conf.d/search.conf
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
server {
|
||||
listen 80;
|
||||
server_name search.localhost;
|
||||
access_log /dev/null;
|
||||
error_log /dev/null;
|
||||
|
||||
location / {
|
||||
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 Host $host;
|
||||
proxy_set_header X-NginX-Proxy true;
|
||||
proxy_pass http://whoogle:5000;
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue