diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index c4a4cd2..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,40 +0,0 @@ -# ===================================== -# Production Docker Compose — dpage-editor -# ===================================== -# Vite SPA (static) served by nginx on port 80 -# Build context: repository root (parent of this file) -# ===================================== - -services: - - app: - build: - context: .. - dockerfile: Dockerfile - args: - - VITE_API_URL=${VITE_API_URL} - - VITE_TOKEN_NAME=${VITE_TOKEN_NAME:-dpage-editor-t} - - VITE_REFRESH_TOKEN_NAME=${VITE_REFRESH_TOKEN_NAME:-dpage-editor-refresh-t} - container_name: ${SERVICE_NAME:-dpage-editor}-${ENVIRONMENT:-prod} - image: ${IMAGE_REPO:-ghcr.io/zmihamid/dpage-editor}:${TAG:-latest} - ports: - - "${APP_PORT_EXTERNAL:-8080}:80" - restart: on-failure:3 - healthcheck: - test: ["CMD-SHELL", "test -s /usr/share/nginx/html/index.html"] - interval: 30s - timeout: 10s - retries: 3 - start_period: 30s - logging: - driver: "json-file" - options: - max-size: "50m" - max-file: "5" - networks: - - app-network - -networks: - app-network: - driver: bridge - name: ${NETWORK_NAME:-dpage-editor-network} diff --git a/nginx.conf b/nginx.conf deleted file mode 100644 index d6bbd54..0000000 --- a/nginx.conf +++ /dev/null @@ -1,47 +0,0 @@ -server { - listen 80; - server_name localhost; - root /usr/share/nginx/html; - index index.html; - - add_header X-Frame-Options "DENY" always; - add_header X-Content-Type-Options "nosniff" always; - add_header X-XSS-Protection "1; mode=block" always; - add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload" always; - # add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline';" always; - add_header Referrer-Policy "strict-origin-when-cross-origin" always; - - location /static/ { - expires 1y; - add_header Cache-Control "public, no-transform"; - } - - location / { - try_files $uri $uri/ /index.html; - expires -1; - add_header Cache-Control "no-store, no-cache, must-revalidate"; - } - - # location /health { - # access_log off; - # return 200; - # } - - location ~ /\. { - deny all; - return 403; - } - - error_page 500 502 503 504 /50x.html; - location = /50x.html { - root /usr/share/nginx/html; - internal; - } - - gzip on; - gzip_vary on; - gzip_min_length 10240; - gzip_proxied expired no-cache no-store private auth; - gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml application/javascript; - gzip_disable "MSIE [1-6]\."; -} \ No newline at end of file