feat:修改目录结构
This commit is contained in:
parent
79ddf3f86c
commit
e857db4356
@ -1,59 +0,0 @@
|
|||||||
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 /qiezi/api/ {
|
|
||||||
proxy_pass http://qiezi_backend:8088;
|
|
||||||
proxy_set_header Host $host;
|
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
client_max_body_size 100m;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /{
|
|
||||||
alias /opt/dist/indexResource/;
|
|
||||||
index index.html;
|
|
||||||
try_files $uri $uri/ /index.html;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /manage {
|
|
||||||
alias /opt/dist/;
|
|
||||||
index index.html;
|
|
||||||
try_files $uri $uri/ /index.html;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /qiezijs {
|
|
||||||
root /opt/dist/;
|
|
||||||
index index.html;
|
|
||||||
try_files $uri $uri/ /index.html;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -28,31 +28,32 @@ http {
|
|||||||
listen 8080;
|
listen 8080;
|
||||||
listen [::]:8080;
|
listen [::]:8080;
|
||||||
index index.html;
|
index index.html;
|
||||||
|
root /opt/dist/;
|
||||||
server_name _;
|
server_name _;
|
||||||
|
|
||||||
location /manage{
|
location /qiezi/api/ {
|
||||||
alias /opt/dist/;
|
proxy_pass http://qiezi_backend:8088;
|
||||||
index index.html;
|
|
||||||
try_files $uri $uri/ /index.html;
|
|
||||||
}
|
|
||||||
|
|
||||||
location / {
|
|
||||||
alias /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 Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
client_max_body_size 100m;
|
client_max_body_size 100m;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /{
|
||||||
|
alias /opt/dist/indexResource/;
|
||||||
|
index index.html;
|
||||||
|
try_files $uri $uri/ /index.html;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /manage {
|
||||||
|
alias /opt/dist/;
|
||||||
|
index index.html;
|
||||||
|
try_files $uri $uri/ /index.html;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /qiezijs {
|
||||||
|
root /opt/dist/;
|
||||||
|
index index.html;
|
||||||
|
try_files $uri $uri/ /index.html;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@ services:
|
|||||||
- qiezi_statistic
|
- qiezi_statistic
|
||||||
volumes:
|
volumes:
|
||||||
- /etc/localtime:/etc/localtime
|
- /etc/localtime:/etc/localtime
|
||||||
- ./config/timezone:/etc/timezone
|
- ./data/timezone:/etc/timezone
|
||||||
- ./qiezi_front/dist:/opt/dist
|
- ./qiezi_front/dist:/opt/dist
|
||||||
- ./data/nginx/nginx.conf:/etc/nginx/nginx.conf
|
- ./data/nginx/nginx.conf:/etc/nginx/nginx.conf
|
||||||
ports:
|
ports:
|
||||||
@ -18,7 +18,7 @@ services:
|
|||||||
- qiezi_statistic
|
- qiezi_statistic
|
||||||
volumes:
|
volumes:
|
||||||
- /etc/localtime:/etc/localtime
|
- /etc/localtime:/etc/localtime
|
||||||
- ./config/timezone:/etc/timezone
|
- ./data/timezone:/etc/timezone
|
||||||
- ./qieziBackend/target/backend-0.0.1-SNAPSHOT.jar:/opt/app/service.jar
|
- ./qieziBackend/target/backend-0.0.1-SNAPSHOT.jar:/opt/app/service.jar
|
||||||
working_dir: /opt/app
|
working_dir: /opt/app
|
||||||
command:
|
command:
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
script.type = "text/javascript";
|
script.type = "text/javascript";
|
||||||
script.defer = true;
|
script.defer = true;
|
||||||
var requestHost = "https://qiezi.fleyx.com";
|
var requestHost = "https://qiezi.fleyx.com";
|
||||||
if (window.qieziStatisticHost != undefined && window.qieziStatisticHost.trim().length > 0) {
|
if (window.qieziStatisticHost !== undefined && window.qieziStatisticHost.trim().length > 0) {
|
||||||
requestHost = window.qieziStatisticHost;
|
requestHost = window.qieziStatisticHost;
|
||||||
} else if (window.CONFIG && window.CONFIG.web_analytics.qieziStatistics.app_host) {
|
} else if (window.CONFIG && window.CONFIG.web_analytics.qieziStatistics.app_host) {
|
||||||
var temp = window.CONFIG.web_analytics.qieziStatistics.app_host;
|
var temp = window.CONFIG.web_analytics.qieziStatistics.app_host;
|
Loading…
x
Reference in New Issue
Block a user