This commit is contained in:
16
.docker/nginx.conf
Normal file
16
.docker/nginx.conf
Normal file
@ -0,0 +1,16 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
# gzip för statiska assets
|
||||
gzip on;
|
||||
gzip_types text/plain text/css application/javascript application/json image/svg+xml;
|
||||
|
||||
# Single Page App fallback
|
||||
location / {
|
||||
try_files $uri /index.html;
|
||||
}
|
||||
}
|
||||
@ -41,8 +41,8 @@ steps:
|
||||
|
||||
# Build args → styr Vite och proxybas
|
||||
build_args:
|
||||
- VITE_API_BASE_URL=${VITE_API_BASE_URL}
|
||||
- VITE_BASE_PATH=/hemhub/
|
||||
- VITE_API_BASE_URL=https://rubble.se/hemhub/api
|
||||
- VITE_BASE_PATH=/hemhub/app
|
||||
|
||||
# Taggar (latest + kort SHA)
|
||||
tags:
|
||||
|
||||
Reference in New Issue
Block a user