resolved #32, resolved #35, resolved #34, resolved #29, resolved #30

This commit is contained in:
2025-02-09 15:00:17 +07:00
parent 6af2a441a6
commit 23573e3130
29 changed files with 2473 additions and 402 deletions

View File

@@ -1,53 +0,0 @@
server {
listen 80;
listen [::]:80;
server_name negotiator.svoboda.works;
# 301 302
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl;
listen 443 quic;
listen [::]:443 ssl;
listen [::]:443 quic;
server_name negotiator.svoboda.works;
http2 on;
http3 on;
quic_gso on;
quic_retry on;
add_header Alt-Svc 'h3=":$server_port"; ma=86400';
add_header x-quic 'h3';
root /var/www/negotiator/svoboda/negotiator/system/public;
index index.php;
keepalive_timeout 60;
include snippets/ssl-params.conf;
include snippets/ssl-svoboda.conf;
include snippets/php8_4.conf;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|mp3|ogg|ogv|webm|htc|woff2|woff)$ {
expires 1M;
access_log off;
add_header Cache-Control "max-age=2629746, public";
}
location ~* \.(?:css|js|mjs|min)$ {
expires 1y;
access_log off;
add_header Cache-Control "max-age=31556952, public";
}
}

View File

@@ -5,8 +5,8 @@ Wants=network.target
After=syslog.target network-online.target
[Service]
ExecStart=sudo -u www-data /usr/bin/php /var/www/project/svoboda/negotiator/system/public/telegram.php
PIDFile=/var/run/php/negotiator-telegram.pid
ExecStart=sudo -u www-data /usr/bin/php /var/www/project/svoboda/svoboder/system/public/telegram.php
PIDFile=/var/run/php/svoboder-telegram.pid
RemainAfterExit=no
RuntimeMaxSec=3600s
Restart=always