2022-02-18 16:59:56 +08:00
|
|
|
user root;
|
|
|
|
worker_processes auto;
|
|
|
|
pid /run/nginx.pid;
|
|
|
|
events {
|
|
|
|
worker_connections 768;
|
|
|
|
}
|
|
|
|
http {
|
|
|
|
# Basic Settings
|
|
|
|
sendfile on;
|
|
|
|
# SSL Settings
|
|
|
|
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
|
|
|
# Logging Settings
|
|
|
|
access_log /dev/stdout;
|
|
|
|
error_log /dev/stderr;
|
|
|
|
# Gzip Settings
|
|
|
|
gzip on;
|
|
|
|
tcp_nopush on;
|
|
|
|
tcp_nodelay on;
|
|
|
|
keepalive_timeout 65;
|
|
|
|
types_hash_max_size 2048;
|
|
|
|
gzip_types text/plain application/javascript application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png application/vnd.ms-fontobject font/ttf font/opentype font/x-woff image/svg+xml;
|
|
|
|
gzip_min_length 1K;
|
|
|
|
include /etc/nginx/mime.types;
|
|
|
|
default_type application/octet-stream;
|
|
|
|
ssl_prefer_server_ciphers on;
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 8080;
|
|
|
|
listen [::]:8080;
|
|
|
|
index index.html;
|
|
|
|
root /opt/dist/;
|
|
|
|
server_name _;
|
2022-02-24 15:20:09 +08:00
|
|
|
|
|
|
|
location /qiezi/api/ {
|
2022-03-01 23:31:20 +08:00
|
|
|
proxy_pass http://qiezi_backend:8088;
|
2022-02-18 16:59:56 +08:00
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
client_max_body_size 100m;
|
|
|
|
}
|
|
|
|
|
2022-02-24 15:20:09 +08:00
|
|
|
location /{
|
2022-03-01 23:31:20 +08:00
|
|
|
alias /opt/dist/indexResource/;
|
|
|
|
index index.html;
|
|
|
|
try_files $uri $uri/ /index.html;
|
|
|
|
}
|
2022-02-18 16:59:56 +08:00
|
|
|
|
2022-02-24 15:20:09 +08:00
|
|
|
location /manage {
|
2022-03-01 23:31:20 +08:00
|
|
|
alias /opt/dist/;
|
2022-02-24 15:20:09 +08:00
|
|
|
index index.html;
|
|
|
|
try_files $uri $uri/ /index.html;
|
|
|
|
}
|
2022-03-01 23:31:20 +08:00
|
|
|
|
|
|
|
location /qiezijs {
|
|
|
|
root /opt/dist/;
|
|
|
|
index index.html;
|
|
|
|
try_files $uri $uri/ /index.html;
|
|
|
|
}
|
2022-02-18 16:59:56 +08:00
|
|
|
}
|
|
|
|
}
|