214 lines
4.8 KiB
Text
214 lines
4.8 KiB
Text
##
|
|
# Main werefox.dev domain site.
|
|
##
|
|
|
|
server {
|
|
listen 8008;
|
|
server_name matrix.werefox.dev;
|
|
|
|
client_max_body_size 300M;
|
|
|
|
location / {
|
|
proxy_pass http://localhost:8088;
|
|
}
|
|
|
|
location /_matrix {
|
|
proxy_pass http://localhost:8088;
|
|
}
|
|
|
|
location ~ /.well-known {
|
|
allow all;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
ssl_certificate /etc/letsencrypt/live/werefox.dev/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/werefox.dev/privkey.pem;
|
|
server_name matrix.werefox.dev;
|
|
|
|
root /etc/nginx/werefoxsoftware-subdomains/;
|
|
client_max_body_size 300M;
|
|
|
|
location / {
|
|
proxy_pass http://localhost:8444;
|
|
}
|
|
|
|
location /_matrix {
|
|
proxy_pass https://localhost:8444;
|
|
}
|
|
|
|
location /.well-known/matrix {
|
|
#{
|
|
# A somewhat long expires value is used to prevent outages
|
|
# in case this is unreachable due to network failure or
|
|
# due to the base domain's server completely dying.
|
|
#}
|
|
expires 4h;
|
|
default_type application/json;
|
|
add_header Access-Control-Allow-Origin *;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 8448 ssl;
|
|
ssl_certificate /etc/letsencrypt/live/werefox.dev/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/werefox.dev/privkey.pem;
|
|
server_name matrix.werefox.dev;
|
|
|
|
root /etc/nginx/werefoxsoftware-subdomains/;
|
|
client_max_body_size 300M;
|
|
|
|
location / {
|
|
proxy_pass http://localhost:8444;
|
|
}
|
|
|
|
location /_matrix {
|
|
proxy_pass https://localhost:8444;
|
|
}
|
|
|
|
location /.well-known/matrix {
|
|
#{
|
|
# A somewhat long expires value is used to prevent outages
|
|
# in case this is unreachable due to network failure or
|
|
# due to the base domain's server completely dying.
|
|
#}
|
|
expires 4h;
|
|
default_type application/json;
|
|
add_header Access-Control-Allow-Origin *;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 9000 ssl;
|
|
ssl_certificate /etc/letsencrypt/live/werefox.dev/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/werefox.dev/privkey.pem;
|
|
server_name matrix.werefox.dev;
|
|
|
|
root /etc/nginx/werefoxsoftware-subdomains/;
|
|
client_max_body_size 300M;
|
|
|
|
location / {
|
|
proxy_pass http://matrix.werefox.dev:9005;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 8222 ssl;
|
|
ssl_certificate /etc/letsencrypt/live/werefox.dev/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/werefox.dev/privkey.pem;
|
|
server_name matrix.werefox.dev;
|
|
|
|
root /etc/nginx/werefoxsoftware-subdomains/;
|
|
client_max_body_size 300M;
|
|
|
|
location / {
|
|
proxy_pass http://matrix.werefox.dev:8228;
|
|
}
|
|
}
|
|
|
|
#server {
|
|
# listen 8008;
|
|
# server_name matrix.werefox.dev;
|
|
#
|
|
# client_max_body_size 300M;
|
|
#
|
|
# location / {
|
|
# proxy_pass http://localhost:8088;
|
|
# }
|
|
#
|
|
# location /_matrix {
|
|
# proxy_pass http://localhost:8088;
|
|
# }
|
|
#
|
|
# location ~ /.well-known {
|
|
# allow all;
|
|
# }
|
|
#}
|
|
|
|
#server {
|
|
# listen 443 ssl;
|
|
# ssl_certificate /etc/letsencrypt/live/werefox.dev/fullchain.pem;
|
|
# ssl_certificate_key /etc/letsencrypt/live/werefox.dev/privkey.pem;
|
|
# server_name matrix.werefox.dev;
|
|
#
|
|
# root /etc/nginx/werefoxsoftware-subdomains/;
|
|
# client_max_body_size 300M;
|
|
#
|
|
# location / {
|
|
# proxy_pass http://localhost:8444;
|
|
# }
|
|
#
|
|
# location /_matrix {
|
|
# proxy_pass https://localhost:8444;
|
|
# }
|
|
#
|
|
# location /.well-known/matrix {
|
|
#{
|
|
# A somewhat long expires value is used to prevent outages
|
|
# in case this is unreachable due to network failure or
|
|
# due to the base domain's server completely dying.
|
|
#}
|
|
# expires 4h;
|
|
# default_type application/json;
|
|
# add_header Access-Control-Allow-Origin *;
|
|
# }
|
|
#}
|
|
|
|
#server {
|
|
# listen 8448 ssl;
|
|
# ssl_certificate /etc/letsencrypt/live/werefox.dev/fullchain.pem;
|
|
# ssl_certificate_key /etc/letsencrypt/live/werefox.dev/privkey.pem;
|
|
# server_name matrix.werefox.dev;
|
|
#
|
|
# root /etc/nginx/werefoxsoftware-subdomains/;
|
|
# client_max_body_size 300M;
|
|
#
|
|
# location / {
|
|
# proxy_pass http://localhost:8444;
|
|
# }
|
|
#
|
|
# location /_matrix {
|
|
# proxy_pass https://localhost:8444;
|
|
# }
|
|
#
|
|
# location /.well-known/matrix {
|
|
#{
|
|
# A somewhat long expires value is used to prevent outages
|
|
# in case this is unreachable due to network failure or
|
|
# due to the base domain's server completely dying.
|
|
#}
|
|
# expires 4h;
|
|
# default_type application/json;
|
|
# add_header Access-Control-Allow-Origin *;
|
|
# }
|
|
#}
|
|
|
|
#server {
|
|
# listen 9000 ssl;
|
|
# ssl_certificate /etc/letsencrypt/live/werefox.dev/fullchain.pem;
|
|
# ssl_certificate_key /etc/letsencrypt/live/werefox.dev/privkey.pem;
|
|
# server_name matrix.werefox.dev;
|
|
#
|
|
# root /etc/nginx/werefoxsoftware-subdomains/;
|
|
# client_max_body_size 300M;
|
|
#
|
|
# location / {
|
|
# proxy_pass http://matrix.werefox.dev:9005;
|
|
# }
|
|
#}
|
|
|
|
#server {
|
|
# listen 8222 ssl;
|
|
# ssl_certificate /etc/letsencrypt/live/werefox.dev/fullchain.pem;
|
|
# ssl_certificate_key /etc/letsencrypt/live/werefox.dev/privkey.pem;
|
|
# server_name matrix.werefox.dev;
|
|
#
|
|
# root /etc/nginx/werefoxsoftware-subdomains/;
|
|
# client_max_body_size 300M;
|
|
#
|
|
# location / {
|
|
# proxy_pass http://matrix.werefox.dev:8228;
|
|
# }
|
|
#}
|
|
|