remove nginx

This commit is contained in:
2026-04-10 00:25:43 +02:00
parent 9223e4d35f
commit 6484003279
4 changed files with 3 additions and 58 deletions
+1 -12
View File
@@ -14,17 +14,6 @@ services:
build: ./frontend
restart: unless-stopped
ports:
- "3300:80"
- "3300:3300"
depends_on:
- backend
nginx:
image: nginx:alpine
restart: unless-stopped
ports:
- "80:80"
volumes:
- ./nginx-conf.conf:/etc/nginx/nginx-conf.conf:ro
depends_on:
- backend
- frontend
-4
View File
@@ -4,7 +4,3 @@ COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html
COPY nginx-frontend.conf /etc/nginx/conf.d/default.conf
-15
View File
@@ -1,15 +0,0 @@
server {
listen 80;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
# Cache static assets
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2)$ {
expires 1y;
add_header Cache-Control "public, immutable";
}
}
-25
View File
@@ -1,25 +0,0 @@
events {
worker_connections 1024;
}
http {
upstream backend { server backend:3301; }
upstream frontend { server frontend:80; }
server {
listen 80;
client_max_body_size 60M;
location /api/ {
proxy_pass http://backend;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_read_timeout 60s;
}
location / {
proxy_pass http://frontend;
proxy_set_header Host $host;
}
}
}