.pkgdata link force flag add

This commit is contained in:
2026-09-12 05:53:05 +03:00
parent 513d336a07
commit 3cb5a220a3
13 changed files with 327 additions and 9 deletions

View File

@ -0,0 +1,43 @@
server {
listen 80;
server_name unitprint.ru www.unitprint.ru;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
http2 on;
server_name unitprint.ru www.unitprint.ru;
ssl_certificate /usr/local/etc/letsencrypt/live/unitprint.ru/fullchain.pem;
ssl_certificate_key /usr/local/etc/letsencrypt/live/unitprint.ru/privkey.pem;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384;
ssl_prefer_server_ciphers off;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
access_log /var/log/nginx/unitprint.access.log;
error_log /var/log/nginx/unitprint.error.log;
location / {
proxy_pass http://192.168.1.129;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
client_max_body_size 100M;
proxy_connect_timeout 60s;
proxy_send_timeout 60s;
proxy_read_timeout 60s;
}
}

View File

@ -0,0 +1,75 @@
server {
listen 80 default_server;
server_name unitprint.ru www.unitprint.ru 192.168.20.1 _
connectivitycheck.android.com
connectivitycheck.gstatic.com
clients3.google.com
www.google.com;
location = /generate_204 { return 204; }
location = /gen_204 { return 204; }
location = /hotspot-detect.html { return 204; }
location = /connecttest.txt { return 204; }
location = /mobile/status.php { return 204; }
location / {
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl;
http2 on;
server_name unitprint.ru www.unitprint.ru 192.168.20.1 _;
ssl_certificate /pkg/gnu/unitprint/certs/fullchain.pem;
ssl_certificate_key /pkg/gnu/unitprint/certs/privkey.pem;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384;
ssl_prefer_server_ciphers off;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 1d;
ssl_session_tickets off;
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains" always;
add_header X-Content-Type-Options nosniff always;
root /pkg/gnu/unitprint/web-app/dist;
index index.html;
gzip on;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript image/svg+xml;
gzip_min_length 1000;
location /api/ {
proxy_pass http://127.0.0.1:3000/;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
client_max_body_size 50M;
proxy_read_timeout 300s;
proxy_send_timeout 300s;
}
location /assets/ {
expires 1y;
add_header Cache-Control "public, immutable";
}
location ~* ^/(sw\.js|registerSW\.js|manifest\.webmanifest)$ {
expires -1;
add_header Cache-Control "no-cache, no-store, must-revalidate";
}
location / {
try_files $uri $uri/ /index.html;
}
}

View File

@ -0,0 +1,43 @@
server {
listen 80;
server_name unitprint.ru www.unitprint.ru 192.168.1.129;
access_log /pkg/gnu/unitprint/nginx/run/unitprint.access.log;
error_log /pkg/gnu/unitprint/nginx/run/unitprint.error.log;
root /pkg/gnu/unitprint/web-app/dist;
index index.html;
gzip on;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript image/svg+xml;
gzip_min_length 1000;
location /api/ {
proxy_pass http://127.0.0.1:3000/;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
client_max_body_size 50M;
proxy_read_timeout 300s;
proxy_send_timeout 300s;
}
location /assets/ {
expires 1y;
add_header Cache-Control "public, immutable";
}
location ~* ^/(sw\.js|registerSW\.js|manifest\.webmanifest)$ {
expires -1;
add_header Cache-Control "no-cache, no-store, must-revalidate";
}
location / {
try_files $uri $uri/ /index.html;
}
}