mirror of
https://github.com/Ichitux/lambada-fiesta-live.git
synced 2026-09-29 06:02:21 +00:00
Remove Nginx, replaced by NodeJS
This commit is contained in:
+6
-5
@@ -5,8 +5,9 @@ RUN npm ci
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:stable-alpine
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=build /app/dist /usr/share/nginx/html
|
||||
EXPOSE 80
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
FROM node:22-alpine AS runtime
|
||||
WORKDIR /app
|
||||
RUN npm install -g serve
|
||||
COPY --from=build /app/dist ./dist
|
||||
EXPOSE 3000
|
||||
CMD ["serve", "-s", "dist", "-l", "tcp://0.0.0.0:3000"]
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ services:
|
||||
- "traefik.http.routers.zlb.rule=Host(`zouklambadabcn.com`) || Host(`www.zouklambadabcn.com`)"
|
||||
- "traefik.http.routers.zlb.entrypoints=websecure"
|
||||
- "traefik.http.routers.zlb.tls.certresolver=letsencrypt"
|
||||
- "traefik.http.services.zlb.loadbalancer.server.port=80"
|
||||
- "traefik.http.services.zlb.loadbalancer.server.port=3000"
|
||||
update_config:
|
||||
order: start-first
|
||||
failure_action: rollback
|
||||
|
||||
-15
@@ -1,15 +0,0 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
location ~* \.(?:ico|css|js|gif|jpe?g|png|svg|woff2?|eot|ttf|otf|webp|avif|mp4|webm)$ {
|
||||
expires 1y;
|
||||
add_header Cache-Control "public, immutable";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user