CSRF
This commit is contained in:
4
Makefile
4
Makefile
@@ -2,10 +2,10 @@
|
||||
# ================================================
|
||||
|
||||
# Docker Compose command detection (v1 or v2)
|
||||
DOCKER_COMPOSE := $(shell which docker-compose 2>/dev/null && echo "docker-compose" || (docker compose version >/dev/null 2>&1 && echo "docker compose" || echo ""))
|
||||
DOCKER_COMPOSE := $(shell command -v docker-compose >/dev/null 2>&1 && echo "docker-compose" || echo "docker compose")
|
||||
|
||||
# Check if Docker Compose is available
|
||||
ifeq ($(DOCKER_COMPOSE),)
|
||||
ifndef DOCKER_COMPOSE
|
||||
$(error Docker Compose not found. Please install Docker Compose v1 or v2)
|
||||
endif
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ services:
|
||||
web:
|
||||
environment:
|
||||
- DJANGO_DEBUG=False
|
||||
- DJANGO_SECURE_SSL_REDIRECT=False
|
||||
- DJANGO_SECURE_SSL_REDIRECT=True
|
||||
- DJANGO_SECURE_HSTS_SECONDS=31536000
|
||||
- DJANGO_SECURE_HSTS_INCLUDE_SUBDOMAINS=True
|
||||
- DJANGO_SECURE_HSTS_PRELOAD=True
|
||||
|
||||
@@ -33,6 +33,8 @@ services:
|
||||
build: ./frontend/linktree-frontend
|
||||
ports:
|
||||
- "3000:3000"
|
||||
environment:
|
||||
- NEXT_PUBLIC_API_URL=https://links.shareon.kr
|
||||
env_file:
|
||||
- .env
|
||||
restart: unless-stopped
|
||||
|
||||
Reference in New Issue
Block a user