mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
add back lost vue entry in nginx.conf and set /vue as default VUE_PATH if no .env is present
This commit is contained in:
parent
6c7bddb8bc
commit
ec97e2adb0
@ -7,7 +7,7 @@ function resolveSrc(_path) {
|
|||||||
|
|
||||||
let vue_path = process.env.VUE_PATH
|
let vue_path = process.env.VUE_PATH
|
||||||
if (vue_path == undefined) {
|
if (vue_path == undefined) {
|
||||||
vue_path = ''
|
vue_path = '/vue'
|
||||||
}
|
}
|
||||||
|
|
||||||
// vue.config.js
|
// vue.config.js
|
||||||
|
|||||||
@ -14,14 +14,6 @@ server {
|
|||||||
root /var/www/cakephp/webroot;
|
root /var/www/cakephp/webroot;
|
||||||
index index.php;
|
index index.php;
|
||||||
|
|
||||||
location ~* \.(png|jpg|ico|webp)$ {
|
|
||||||
expires 30d;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~* \.(js|css) {
|
|
||||||
# expires 1d;
|
|
||||||
expires 1d;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
fastcgi_pass community-server:9000;
|
fastcgi_pass community-server:9000;
|
||||||
@ -72,6 +64,29 @@ server {
|
|||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php?$args;
|
try_files $uri $uri/ /index.php?$args;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /vue {
|
||||||
|
|
||||||
|
location /vue/sockjs-node {
|
||||||
|
rewrite /vue/(.*) /$1;
|
||||||
|
}
|
||||||
|
location ~* \.(png) {
|
||||||
|
expires 1d;
|
||||||
|
rewrite /vue/(.*) /$1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection 'upgrade';
|
||||||
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
#rewrite /vue/(.*) /$1 break;
|
||||||
|
|
||||||
|
proxy_pass http://frontend:8080;
|
||||||
|
proxy_redirect off;
|
||||||
|
}
|
||||||
|
|
||||||
# access_log /var/log/nginx/access.log main;
|
# access_log /var/log/nginx/access.log main;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user