pkg install, add link if package no have scripts
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name local.unitprint.ru unitprint.ru 192.168.1.129;
|
||||
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;
|
||||
@ -12,6 +12,22 @@ server {
|
||||
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/scan/ {
|
||||
proxy_pass http://127.0.0.1:15200/;
|
||||
|
||||
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;
|
||||
proxy_connect_timeout 300s;
|
||||
}
|
||||
|
||||
location /api/ {
|
||||
proxy_pass http://127.0.0.1:3000/;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user