代码拉取完成,页面将自动刷新
同步操作将从 NeatLogic/neatlogic-itom-all 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
user root;
worker_processes 1;
pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
client_max_body_size 1024m;
log_format main '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" "$http_x_forwarded_for"';
log_format postdata $request_body;
access_log /app/logs/nginx/access.log postdata;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
#gzip on;
server {
listen 8090;
server_name localhost;
charset utf-8;
set $appaddr 127.0.0.1:8080;
set $webroot /app/neatlogic-web/dist;
#access_log /app/logs/nginx/host.access.log main;
#client_body_temp_path /var/log/nginx/client_request;
client_body_in_file_only clean;
location ~ /anonymous/api/(.*) {
proxy_pass http://127.0.0.1:8080/neatlogic/anonymous/api/$1?$args;
proxy_set_header X-Forwarded-For $remote_addr;
}
location ~ /([^\/]+)/public/api/(.*) {
set $modified_uri $request_uri;
if ($modified_uri ~ "^/([^\/]+)/public/api/([^\?]+)") {}
proxy_pass http://127.0.0.1:8080/neatlogic/public/api/$2?$args;
proxy_set_header Tenant $1;
proxy_set_header Cookie $http_cookie;
proxy_set_header X-Forwarded-For $remote_addr;
}
location ~ /([^\/]+)/api/(.*) {
proxy_pass http://$appaddr/neatlogic/api/$2?$args;
proxy_set_header Tenant $1;
proxy_set_header Cookie $http_cookie;
proxy_set_header X-Forwarded-For $remote_addr;
}
location ~ /([^\/]+)/([^\/]+)/check$ {
proxy_pass http://$appaddr/neatlogic/$2/check/$1?$args;
proxy_set_header Tenant $1;
}
location ~ ^.*/resource/(.*)$ {
alias $webroot/resource/$1;
break;
}
location ~ .*/login.html {
root $webroot;
rewrite .* /login.html break;
}
location ~ /([^\/]*).html {
add_header Cache-Control 'private, no-store, max-age=0';
add_header Access-Control-Allow-Origin *;
alias $webroot;
try_files /$1.html break;
}
#match default route
location = / {
#设置默认租户导航,当访问根路径时重定向到默认租户
rewrite ^.*$ /demo/ permanent;
}
location / {
alias $webroot;
try_files /index.html break;
}
error_page 404 404.html;
location ~ /404.html$ {
alias $webroot/;
}
error_page 500 502 503 504 50x.html;
location ~ /50x.html$ {
#root html;
alias html/;
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。