first commit

This commit is contained in:
2026-08-13 18:36:31 +09:00
commit cee36bf12d
48 changed files with 4212 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
server {
listen 80;
server_name recipe.example.com;
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location / {
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl http2;
server_name recipe.example.com;
# 실제 인증서 경로로 교체한다. Let's Encrypt/Caddy를 사용해도 된다.
ssl_certificate /etc/letsencrypt/live/recipe.example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/recipe.example.com/privkey.pem;
add_header X-Content-Type-Options nosniff always;
add_header Referrer-Policy strict-origin-when-cross-origin always;
client_max_body_size 2m;
location / {
proxy_pass http://127.0.0.1:3000;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 120s;
}
}
+19
View File
@@ -0,0 +1,19 @@
# Linux에서는 production 프로필을 자동 사용합니다.
HOST=127.0.0.1
PORT=3000
LOG_LEVEL=info
PUBLIC_BASE_URL=https://recipe.example.com
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_CALLBACK_URL=https://recipe.example.com/auth/google/callback
# DB가 비어 있을 때 최초 접근 관리자 계정으로 한 번만 등록됩니다.
ALLOWED_GOOGLE_EMAILS=
AUTH_JWT_SECRET=replace-with-a-long-random-secret
AUTH_SESSION_TTL_HOURS=24
MINIMAX_API_KEY=
MINIMAX_BASE_URL=https://api.minimax.io/v1
MINIMAX_MODEL=MiniMax-M2.7
INSTAGRAM_SESSION_COOKIE=
+24
View File
@@ -0,0 +1,24 @@
[Unit]
Description=Our Recipe Atlas Fastify service
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=recipe-atlas
Group=recipe-atlas
WorkingDirectory=/opt/our_recipe_atlas
EnvironmentFile=/etc/our-recipe-atlas.env
ExecStart=/usr/bin/node /opt/our_recipe_atlas/src/server.js
Restart=on-failure
RestartSec=5
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/mnt/recipe-ssd/our_recipe_atlas/images
[Install]
WantedBy=multi-user.target