campus-imaotai
campus-imaotai copied to clipboard
[bug]: 前端样式错误
成功部署前后端,访问也正常,但是样式乱了
样式异常
资源正常加载
怀疑是这个乱码
下面是我的nginx配置(openresty的)
`server {
listen 38433 ssl http2;
listen [::]:38433 ssl http2;
server_name xxxxxx;
ssl_certificate xxxxx
ssl_certificate_keyxxxx
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 10m;
ssl_prefer_server_ciphers on;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA:AES128-GCM-SHA256:AES128-SHA256:AES128-SHA:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:AES256-GCM-SHA384:AES256-SHA256:AES256-SHA:ECDHE-RSA-AES128-SHA256:!aNULL:!eNULL:!EXPORT:!DES:!3DES:!MD5:!DSS:!PKS;
error_page 404 500 502 503 504 /404.html;
charset utf-8;
location / {
root /opt/apps/campus/vue_campus_admin/dist;
try_files $uri $uri/ /index.html;
index index.html index.htm;
}
location /prod-api/ {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://localhost:8160;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}`