2023-07-09 03:01:12 +00:00
|
|
|
user web;
|
|
|
|
worker_processes 4;
|
|
|
|
|
|
|
|
# Speed up regular expressions.
|
|
|
|
pcre_jit on;
|
|
|
|
|
|
|
|
error_log stderr debug;
|
|
|
|
|
|
|
|
events {
|
|
|
|
# Connections per worker process.
|
|
|
|
worker_connections 1024;
|
|
|
|
}
|
|
|
|
|
|
|
|
http {
|
|
|
|
include /etc/nginx/mime.types;
|
|
|
|
default_type application/octet-stream;
|
2023-09-22 03:18:37 +00:00
|
|
|
|
|
|
|
types {
|
|
|
|
text/plain asc;
|
|
|
|
}
|
|
|
|
|
2023-07-09 03:01:12 +00:00
|
|
|
server_tokens off;
|
|
|
|
client_max_body_size 1m;
|
|
|
|
sendfile on;
|
|
|
|
tcp_nopush on;
|
|
|
|
|
|
|
|
include headers.include;
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 8080;
|
|
|
|
root /srv/http/public;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
index index.html index.htm;
|
|
|
|
if (-d $request_filename) {
|
|
|
|
rewrite [^/]$ $http_x_forwarded_proto://$http_host$uri/ redirect;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
location /healthz {
|
|
|
|
access_log off;
|
|
|
|
add_header 'Content-Type' 'application/json';
|
|
|
|
return 200 '{"status":"OK"}';
|
|
|
|
}
|
2023-08-10 04:35:13 +00:00
|
|
|
|
2023-09-23 16:23:27 +00:00
|
|
|
location /.well-known/ {
|
|
|
|
alias /srv/http/public/well-known/;
|
2024-01-02 18:35:55 +00:00
|
|
|
default_type text/plain;
|
|
|
|
}
|
|
|
|
|
2024-01-03 02:28:43 +00:00
|
|
|
location /.well-known/openpgpkey/hu/ {
|
|
|
|
alias /srv/http/public/well-known/openpgpkey/fizz.buzz/hu/;
|
|
|
|
default_type "application/octet-stream";
|
|
|
|
add_header Access-Control-Allow-Origin * always;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /.well-known/openpgpkey/policy {
|
|
|
|
alias /srv/http/public/well-known/openpgpkey/fizz.buzz/policy;
|
|
|
|
default_type "application/octet-stream";
|
|
|
|
add_header Access-Control-Allow-Origin * always;
|
|
|
|
}
|
|
|
|
|
2024-01-02 18:40:12 +00:00
|
|
|
location ~ /\.well-known/(?<path>openpgpkey/[^/]+/hu/.*) {
|
2024-01-02 18:35:55 +00:00
|
|
|
alias /srv/http/public/well-known/$path;
|
2024-01-02 17:36:17 +00:00
|
|
|
default_type "application/octet-stream";
|
|
|
|
add_header Access-Control-Allow-Origin * always;
|
|
|
|
}
|
|
|
|
|
2023-08-10 04:35:13 +00:00
|
|
|
location /.well-known/matrix/server {
|
|
|
|
default_type application/json;
|
2023-08-10 18:44:00 +00:00
|
|
|
add_header "Access-Control-Allow-Origin" *;
|
2023-08-10 04:35:13 +00:00
|
|
|
return 200 '{"m.server": "matrix.fizz.buzz:8448"}';
|
|
|
|
}
|
|
|
|
|
|
|
|
location /.well-known/matrix/client {
|
|
|
|
default_type application/json;
|
2023-08-10 18:44:00 +00:00
|
|
|
add_header "Access-Control-Allow-Origin" *;
|
2023-08-10 04:35:13 +00:00
|
|
|
return 200 '{"m.homeserver":{"base_url": "https://matrix.fizz.buzz"}}';
|
|
|
|
}
|
2023-07-09 03:01:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|