Files

49 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

2025-04-27 21:09:42 +07:00
server {
2025-04-28 21:33:02 +07:00
listen 443 ssl;
http2 on;
2025-04-28 20:38:15 +07:00
server_name ${NP_DOMAIN};
2025-04-27 21:09:42 +07:00
root /var/www/html/public;
index index.php index.html;
2025-04-28 20:21:32 +07:00
ssl_certificate /certs/fullchain.pem;
2025-04-29 01:24:13 +07:00
ssl_certificate_key /certs/private.key;
2025-04-27 21:09:42 +07:00
2025-06-16 15:42:27 +07:00
client_max_body_size 100M;
2025-04-27 21:09:42 +07:00
location = /favicon.ico {
log_not_found off;
access_log off;
}
location / {
try_files $uri $uri/ /nexus.php?$query_string;
}
# Filament
location ^~ /filament {
try_files $uri $uri/ /nexus.php$is_args$args;
}
2025-05-01 21:42:31 +07:00
location = /announce.php {
access_by_lua_block {
local filter = require("tracker_filter")
filter()
}
fastcgi_pass php:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param REQUEST_ID $request_id;
}
2025-04-27 21:09:42 +07:00
location ~ \.php$ {
fastcgi_pass php:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param REQUEST_ID $request_id;
}
}