generated from jarvis394/nestjs-prisma-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.env.template
118 lines (101 loc) · 3.04 KB
/
.env.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# Current environment [development, production, test]
NODE_ENV=production
# Is mocking external API responses
MOCKS=true
# Current machine host
HOST=0.0.0.0
# Web app port
WEB_PORT=4200
# Gallery app port
GALLERY_PORT=5200
# Service handling Tus uploads port
UPLOAD_SERVICE_PORT=8000
# This is needed as AdonisJS hardcoded PORT variable :/
PORT=${UPLOAD_SERVICE_PORT}
##### PostgreSQL connection string
# - Use this if apps are running inside of Docker
# DB_HOST=valley-postgres
# - Use this if apps are running outside of Docker
DB_HOST=localhost
DB_PORT=5432
DB_USER=postgres
DB_PASSWORD=postgres
DB_DATABASE=valley
DATABASE_URL=postgresql://${DB_USER}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_DATABASE}
# Minio storage credentials
MINIO_ROOT_USER=minioadmin
MINIO_ROOT_PASSWORD=minioadmin
##### Redis connection string
# - Use this if apps are running inside of Docker
# REDIS_HOST=redis://valley-redis:6379
# - Use this if apps are running outside of Docker
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_URL=redis://${REDIS_HOST}:${REDIS_PORT}
# Do not change, fixes libvips alloc warning
VIPS_CONCURRENCY=$(nproc 2>/dev/null || sysctl -n hw.logicalcpu)
#####
##### Remix variables
#####
# URL pointing at web service
WEB_SERVICE_URL=http://localhost:${WEB_PORT}
# Remix auth session secret for hashing
SESSION_SECRET=CHANGE_ME
# URL pointing at tus service
TUSD_URL=http://localhost:${UPLOAD_SERVICE_PORT}/api/storage
# URL pointing at upload service
UPLOAD_SERVICE_URL=http://localhost:${UPLOAD_SERVICE_PORT}
# URL pointing at gallery service
GALLERY_SERVICE_URL=http://localhost:${GALLERY_PORT}
# Resend API key, obtain at https://resend.com
RESEND_API_KEY=
# Honeypot's hash secret key
HONEYPOT_SECRET=CHANGE_ME
# Auth provider Github details
GITHUB_TOKEN=MOCK_
GITHUB_CLIENT_ID=MOCK_
GITHUB_CLIENT_SECRET=MOCK_
# Auth provider VK details
VK_CLIENT_ID=MOCK_
VK_CLIENT_SECRET=MOCK_
# Auth provider Google details
GOOGLE_CLIENT_ID=MOCK_
GOOGLE_CLIENT_SECRET=MOCK_
###
### Public variables for Remix
###
VITE_GITHUB_CLIENT_ID=${GITHUB_CLIENT_ID}
VITE_UPLOAD_SERVICE_URL=${UPLOAD_SERVICE_URL}
VITE_GALLERY_SERVICE_URL=${GALLERY_SERVICE_URL}
###
### Public variables for Gallery (NextJS)
###
NEXT_PUBLIC_UPLOAD_SERVICE_URL=${UPLOAD_SERVICE_URL}
NEXT_PUBLIC_WEB_SERVICE_URL=${WEB_SERVICE_URL}
#####
##### Upload service variables
#####
# Machine timezone
TZ=UTC
# Minimum level for logging
LOG_LEVEL=info
# Key used for hashing signed urls, cookies, etc.
# Should be at least 16 characters long
APP_KEY=CHANGE_ME_SHOULD_BE_AT_LEAST_16_CHARS
# Default drive selection [fs, s3, gcs]
DRIVE_DISK=s3
##### S3-like storage (ex. minio) connection details
##### They are passed in docker-compose.yml file as startup seed
# - Use this if apps are running inside of Docker
# AWS_ENDPOINT=http://nginx:9000
# - Use this if apps are running outside of Docker
AWS_ENDPOINT=http://localhost:9000
AWS_REGION=ru-1
AWS_ACCESS_KEY_ID=minioadmin
AWS_SECRET_ACCESS_KEY=minioadmin
# Upload bucket for files
AWS_BUCKET=files
##### GCS connection details
GCS_KEY=file://./gcs_key.json
GCS_BUCKET=
LOCK_STORE=redis