-
-
Notifications
You must be signed in to change notification settings - Fork 87
/
.env.example
86 lines (70 loc) · 3.39 KB
/
.env.example
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
# Documentation can be found at: https://docs.snailycad.org/docs/installations
# * Required
# This is the password to the postgress database.
# Documentation: https://docs.snailycad.org/docs/guides/env/reference#postgres_password
POSTGRES_PASSWORD="postgres"
# * Required
# This is the username to the postgress database.
# Documentation: https://docs.snailycad.org/docs/guides/env/reference#postgres_user
POSTGRES_USER="postgres"
# * Required
# The database host
# -> Docker install: "postgres"
# -> Standalone install: "localhost" (or another IP)
# Documentation: https://docs.snailycad.org/docs/guides/env/reference#db_host
DB_HOST="localhost"
# * Required
# The database port
# -> Docker install: "5432"
# -> Standalone install: port to your PostgreSQL DB (default: "5432")
# Documentation: https://docs.snailycad.org/docs/guides/env/reference#db_port
DB_PORT="5432"
# * Required
# The database name.
# Documentation: https://docs.snailycad.org/docs/guides/env/reference#postgres_db
POSTGRES_DB="snaily-cad-v4"
# * Required
# This is a random value to keep the CAD's cookies secured. Make sure to change this!
# Documentation: https://docs.snailycad.org/docs/guides/env/reference#jwt_secret
JWT_SECRET="some-random-string-of-characters"
# * Required
# string of 32 characters long. Make sure to change this!
# Generate one at: https://codebeautify.org/generate-random-string
# Documentation: https://docs.snailycad.org/docs/guides/env/reference#encryption_token
ENCRYPTION_TOKEN="Geu2WGypP7irbwa3tCeeKS6YiyluFLep"
# * Required
# This is the URL/IP to your site where the CAD is hosted.
# -> e.g. https://cad.mysite.com or http://99.99.00.190:3000 or *
# Documentation: https://docs.snailycad.org/docs/guides/env/reference#cors_origin_url--next_public_client_url
CORS_ORIGIN_URL="http://192.168.x.x:3000"
# * Required
# This is the URL/IP to your site where the CAD is hosted.
# -> e.g. https://cad.mysite.com or http://99.99.00.190:3000
# Documentation: https://docs.snailycad.org/docs/guides/env/reference#cors_origin_url--next_public_client_url
NEXT_PUBLIC_CLIENT_URL="http://192.168.x.x:3000"
# * Required
# The URL/IP to where the API is hosted.
# -> e.g. https://cad-api.mysite.com/v1 or http://99.99.00.190:8080/v1
# Documentation: https://docs.snailycad.org/docs/guides/env/reference#next_public_prod_origin
NEXT_PUBLIC_PROD_ORIGIN="http://192.168.x.x:8080/v1"
# only enter this value if you're using a domain!
# domain should only be the domain, NOT including sub-domains
# example: `DOMAIN="example.com"`
# Documentation: https://docs.snailycad.org/docs/guides/env/reference#domain
DOMAIN=""
# "true" or "false"
# Can only be enabled when having valid SSL (https) and a domain.
# Documentation: https://docs.snailycad.org/docs/guides/env/reference#secure_cookies_for_iframe
SECURE_COOKIES_FOR_IFRAME="false"
# The port of which the API will run on. Default: 8080
# When using Docker, make sure to change this in the `production.docker-compose.yml` file too.
# Documentation: https://docs.snailycad.org/docs/guides/env/reference#port_api
PORT_API=8080
# The port of which the client will run on. Default: 3000
# Documentation: https://docs.snailycad.org/docs/guides/env/reference#port_client
PORT_CLIENT=3000
# Do not change this.
NODE_ENV="production"
# * Required
# Do not change this, unless you know what you're doing!
DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DB_HOST}:${DB_PORT}/${POSTGRES_DB}?sslmode=prefer