58 lines
1.5 KiB
Nginx Configuration File
58 lines
1.5 KiB
Nginx Configuration File
|
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 _;
|
||
|
|
||
|
location / {
|
||
|
root /opt/dist/indexResource;
|
||
|
index index.html;
|
||
|
try_files $uri $uri/ /index.html;
|
||
|
}
|
||
|
|
||
|
location /qiezi/api {
|
||
|
proxy_pass http://backend:8088;
|
||
|
proxy_set_header Host $host;
|
||
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
client_max_body_size 100m;
|
||
|
}
|
||
|
|
||
|
location /manage{
|
||
|
root /opt/dist;
|
||
|
index index.html;
|
||
|
try_files $uri $uri/ /index.html;
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
}
|
||
|
}
|