infrastructure/nginx/Synapse/site-confs/tor.conf

15 lines
481 B
Plaintext
Raw Normal View History

2023-01-01 13:04:41 -05:00
server {
listen 69 ;
server_name 7pdtdadfcjvntnbip764d5sc35d2s7hhdkbbie5hy7njovea4534vxqd.onion;
location /.well-known/matrix/server {
return 200 '{"m.server": "7pdtdadfcjvntnbip764d5sc35d2s7hhdkbbie5hy7njovea4534vxqd.onion:80"}';
}
location / {
set $upstream_app tor-synapse;
set $upstream_port 8008;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
}