mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	fix 修复 powerjob 使用 nginx 部署无法访问的问题
This commit is contained in:
		@@ -68,7 +68,7 @@ http {
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        location / {
 | 
			
		||||
            root   /usr/share/nginx/html;
 | 
			
		||||
            root   /usr/share/nginx/html; # docker映射路径 不允许更改
 | 
			
		||||
            try_files $uri $uri/ /index.html;
 | 
			
		||||
            index  index.html index.htm;
 | 
			
		||||
        }
 | 
			
		||||
@@ -103,6 +103,11 @@ http {
 | 
			
		||||
            proxy_pass http://powerjob-server/;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        # 解决 powerjob 代理之后静态文件无法访问的问题 请勿修改乱动
 | 
			
		||||
        location .*\.(js|css|jpg|png|svg|woff|ttf|ico)?$ {
 | 
			
		||||
            proxy_pass http://powerjob-server;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        error_page   500 502 503 504  /50x.html;
 | 
			
		||||
        location = /50x.html {
 | 
			
		||||
            root   html;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user