Merge branch 'main' into storefront-nuxt
This commit is contained in:
commit
492aeb85db
1 changed files with 12 additions and 17 deletions
|
|
@ -6,6 +6,10 @@ upstream prom_backend {
|
|||
server 127.0.0.1:9090;
|
||||
}
|
||||
|
||||
upstream storefront_frontend {
|
||||
server 127.0.0.1:3000;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
server_name api.evibes.com b2b.evibes.com;
|
||||
|
|
@ -70,28 +74,11 @@ server {
|
|||
add_header X-Content-Type-Options nosniff always;
|
||||
add_header Referrer-Policy no-referrer-when-downgrade always;
|
||||
|
||||
location ~* \.(?:js|css|png|jpe?g|gif|svg|woff2?)$ {
|
||||
root /var/jenkins/workspace/evibes-frontend-nuxt/dist;
|
||||
try_files $uri =404;
|
||||
add_header Cache-Control "public, max-age=31536000, immutable";
|
||||
access_log off;
|
||||
}
|
||||
|
||||
location /favicon.ico {
|
||||
add_header Access-Control-Allow-Origin "*";
|
||||
root /var/jenkins/workspace/evibes/static;
|
||||
}
|
||||
|
||||
location / {
|
||||
root /var/jenkins/workspace/evibes-frontend-nuxt/dist;
|
||||
try_files $uri $uri/ /index.html @maintenance;
|
||||
}
|
||||
|
||||
location = /index.html {
|
||||
root /var/jenkins/workspace/evibes-frontend-nuxt/dist;
|
||||
try_files $uri @maintenance;
|
||||
}
|
||||
|
||||
location = /robots.txt {
|
||||
add_header Access-Control-Allow-Origin "*";
|
||||
alias /var/jenkins/workspace/evibes/static/robots_frontend.txt;
|
||||
|
|
@ -107,6 +94,14 @@ server {
|
|||
proxy_set_header Accept "application/xml";
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://storefront_frontend;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
location @maintenance {
|
||||
return 503;
|
||||
}
|
||||
Loading…
Reference in a new issue