infrastructure/nginx/Synapse/site-confs/matrix.anonymousland.org.conf
2023-01-01 13:05:22 -05:00

86 lines
2.2 KiB
Plaintext

server {
listen 80 default_server;
listen [::]:80 default_server;
server_name matrix.anonymousland.org;
location / {
return 307 https://$host$request_uri;
}
}
#Workers
include /config/nginx/include.d/upstream_workers.conf;
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
listen 8448 ssl http2 default_server;
listen [::]:8448 ssl http2 default_server;
server_name matrix.anonymousland.org;
include /config/nginx/ssl.conf;
client_max_body_size 1024M;
# Well-Known
location /.well-known/matrix/server {
default_type application/json;
add_header Access-Control-Allow-Origin *;
return 200 '{"m.server": "matrix.anonymousland.org:443"}';
}
location /.well-known/matrix/client {
default_type application/json;
add_header Access-Control-Allow-Origin *;
}
# Mjolnir Reports
include /config/nginx/include.d/mjolnir-reports.conf;
# Maubot
include /config/nginx/include.d/maubot.conf;
# Federation_Worker
include /config/nginx/include.d/federation_worker.conf;
# Encryption_Worker
include /config/nginx/include.d/encryption_worker.conf;
# Client_Worker
include /config/nginx/include.d/client_worker.conf;
# Register
include /config/nginx/include.d/register.conf;
# Additional1_Worker | Typing Device Account
#include /config/nginx/include.d/additional1_worker.conf;
# Additional2_Worker | Reciept
#include /config/nginx/include.d/additional2_worker.conf;
# Event_worker
#include /config/nginx/include.d/event_worker.conf;
# Extra Workers
#include /config/nginx/include.d/extra_worker.conf;
# Media Repo
#include /config/nginx/include.d/media-repo.conf;
# /synapse/admin
#include /config/nginx/include.d/synapse-admin.conf;
# Sync_Worker
#include /config/nginx/include.d/sync_worker.conf;
location / {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
include /config/nginx/include.d/synapse-proxy.conf;
set $upstream_app synapse;
set $upstream_port 8008;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
}