Skip to content

Commit

Permalink
ngninx config
Browse files Browse the repository at this point in the history
  • Loading branch information
ulfgebhardt committed Apr 8, 2024
1 parent a1d9cb2 commit b3b02f5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
17 changes: 17 additions & 0 deletions deployment/nginx/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,23 @@ server {
error_log /var/www/localhost/htdocs/dreammall.earth/log/nginx.error.frontend.log warn;
}

location /app/assets/ {
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;
proxy_buffers 4 512k;
proxy_buffer_size 256k;

proxy_pass http://127.0.0.1:3000/assets/;
proxy_redirect off;

access_log /var/www/localhost/htdocs/dreammall.earth/log/nginx.access.frontend.log combined;
error_log /var/www/localhost/htdocs/dreammall.earth/log/nginx.error.frontend.log warn;
}

location /api {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
Expand Down
4 changes: 2 additions & 2 deletions frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ const config: UserConfig = {
!isStorybook() &&
vike({
prerender: true,
baseAssets: 'https://stage1.dreammall.earth/app/',
// baseAssets: 'https://stage1.dreammall.earth/app/',
// baseAssets: '/app/',
// baseServer: '/app/',
baseServer: '/app/',
}), // SSR only when storybook is not running
vueI18n({
ssr: true,
Expand Down

0 comments on commit b3b02f5

Please sign in to comment.