diff --git a/auth-web/.env b/auth-web/.env index faedd6504d..40a3c776cd 100644 --- a/auth-web/.env +++ b/auth-web/.env @@ -1,2 +1,2 @@ -VUE_APP_PATH = /cooperatives/auth/ -VUE_APP_PATH_COOPS = cooperatives +VUE_APP_PATH = /business/auth/ +VUE_APP_PATH_COOPS = business diff --git a/auth-web/.env.production b/auth-web/.env.production index faedd6504d..40a3c776cd 100644 --- a/auth-web/.env.production +++ b/auth-web/.env.production @@ -1,2 +1,2 @@ -VUE_APP_PATH = /cooperatives/auth/ -VUE_APP_PATH_COOPS = cooperatives +VUE_APP_PATH = /business/auth/ +VUE_APP_PATH_COOPS = business diff --git a/auth-web/nginx.conf b/auth-web/nginx.conf index bd6e796717..6f870a2d73 100644 --- a/auth-web/nginx.conf +++ b/auth-web/nginx.conf @@ -19,26 +19,26 @@ http { default_type application/octet-stream; server_tokens off; underscores_in_headers on; - + # Use a w3c standard log format log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; - + access_log /var/log/nginx/access.log main; - + server { - + # add in most common security headers add_header Content-Security-Policy "default-src * data: blob: filesystem: 'unsafe-inline' 'unsafe-eval'"; add_header Strict-Transport-Security "max-age=31536000; includeSubDomains"; add_header X-Content-Type-Options "nosniff"; add_header X-XSS-Protection 1; add_header X-Frame-Options DENY; - - - + + + listen 8080; server_name _; @@ -47,7 +47,7 @@ http { access_log /dev/stdout; root /app; - location /cooperatives/auth { + location /business/auth { alias /app; try_files $uri /index.html; gzip on; diff --git a/auth-web/vue.config.js b/auth-web/vue.config.js index d4837a2233..4537f90575 100644 --- a/auth-web/vue.config.js +++ b/auth-web/vue.config.js @@ -26,7 +26,7 @@ module.exports = { manifestOptions: { name: 'Cooperatives Online', short_name: 'Cooperatives Online', - start_url: '/cooperatives/auth/', + start_url: '/business/auth/', display: 'standalone', theme_color: '#003366', background_color: '#fcba19',