Skip to content

Commit bbdb07a

Browse files
committed
docs: update env example
1 parent 94c884f commit bbdb07a

1 file changed

Lines changed: 40 additions & 23 deletions

File tree

.env.example

Lines changed: 40 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,62 @@
1+
# Require when run on docker prod
2+
DOCKER_APP_EXPOSE_PORT="8980"
3+
DOCKER_PROXY_HOST="Host(`100.108.173.73`) || Host(`100.88.117.62`) || Host(`api.localhost`) || Host(`localhost:3030`) || Host(`dev-api2.comcamp.io`) || Host(`dev-api2.comcamp.io:4842`) || Host(`api.comcamp.io`) || Host(`dev-api.comcamp.io`) || Host(`localhost`) || Host(`dev-cc37.aboutnon.in.th`)"
14

2-
DOCKER_APP_EXPOSE_PORT="8981"
3-
DOCKER_PROXY_HOST="Host(`100.108.173.73`)"
4-
5+
# Commmon setup
56
APP_PORT="3030"
6-
APP_ALLOW_ORIGIN="http://127.0.0.1:5500,http://127.0.0.1:5501,http://localhost:3000"
7+
APP_ALLOW_ORIGIN="http://127.0.0.1:5500,http://127.0.0.1:5501,http://localhost:3000,https://h8lwvw8x-3000.asse.devtunnels.ms"
78
APP_FRONTEND_URL="http://localhost:3000"
9+
APP_DOMAIN="comcamp.io"
10+
APP_ENV="DEV"
811

9-
AUTH_JWT_SECRET=""
12+
# Google OAuth credentials
13+
AUTH_JWT_SECRET="TUNGTUNGTUNGSAHUR"
1014
AUTH_GOOGLE_CLIENT_ID=""
1115
AUTH_GOOGLE_CLIENT_SECRET=""
1216
AUTH_GOOGLE_CALLBACK_URL="http://localhost:3030/student/google/callback"
1317

14-
18+
# Database (Supabase recommend)
1519
DATABASE_URL=""
1620

17-
18-
S3_REGION=""
19-
S3_ENDPOINT=""
21+
# S3 credentials (Support All S3 compatible (CF R2, Minio))
22+
S3_REGION="KEYES"
23+
S3_ENDPOINT="https://storage.comcamp.io"
2024
S3_ACCESS_KEY=""
2125
S3_SECRET_KEY=""
22-
S3_BUCKET=""
26+
S3_BUCKET="upload"
2327

24-
25-
BETTER_AUTH_SECRET=""
28+
# Better Auth
29+
BETTER_AUTH_SECRET="TUNGTUNGTUNGSAHUR"
2630
BETTER_AUTH_URL="http://localhost:3030"
2731

28-
32+
# Resend credentials (if u wanna use comcamp.io as email domain but comcamp 37 no money then we just use google mail instead ;-;) (100 mails/days)
2933
RESEND_API_KEY=""
30-
RESEND_API_NAME=""
34+
RESEND_API_NAME="no-reply"
3135
RESEND_API_DOMAIN=""
3236

37+
# Mail credentials setup (500 mails/day) ()
38+
MAIL_HOST="smtp.gmail.com"
39+
MAIL_PORT="587"
40+
MAIL_USER="" # A email of gmail (TUNGTUNGTUNGSAHUR@gmail.com)
41+
MAIL_PASS="" # Go to https://myaccount.google.com/apppasswords to get App Password
42+
MAIL_FROM="TUNGTUNGTUNGSAHUR 37 <TUNGTUNGTUNGSAHUR@gmail.com>" # anything but with this format
3343

34-
MAIL_HOST=""
35-
MAIL_PORT=""
36-
MAIL_USER=""
37-
MAIL_PASS=""
38-
MAIL_FROM=""
39-
40-
41-
LOGGING_WEBHOOK_URL=""
44+
# Optional: Discord Webhook Logging
45+
LOGGING_WEBHOOK_URL="https://discord.com/api/webhooks/"
4246

47+
# Regis time allow
4348
REGISTER_PERIOD_BYPASS="true"
4449
REGISTER_PERIOD_START="2026-02-23T14:00:00+07:00"
45-
REGISTER_PERIOD_END="2026-03-10T23:59:59+07:00"
50+
REGISTER_PERIOD_END="2026-03-10T23:59:59+07:00"
51+
52+
# Comfirm period allow
53+
RESULT_ANNOUNCE_AND_CONFIRM_PERIOD_BYPASS="true"
54+
RESULT_ANNOUNCE_AND_CONFIRM_PERIOD_START="2026-03-21T00:00:00+07:00"
55+
RESULT_ANNOUNCE_AND_CONFIRM_PERIOD_END="2026-03-22T23:59:59+07:00"
56+
57+
# Easyslip credentials (A payment verification api)
58+
API_EASYSLIP_KEY=""
59+
60+
# payment config
61+
PAYMENT_BYPASS="true"
62+
PAYMENT_AMOUNT="1"

0 commit comments

Comments
 (0)