summaryrefslogtreecommitdiff
path: root/example.env
blob: 5bac88b787d26aae8cf5a8050c0fe1c4188f736b (plain)
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
### CRIMSON --- A simple PHP framework.
### Website --- freya.cat website
### Copyright © 2024 Freya Murphy <contact@freyacat.org>
###
### This file is part of CRIMSON.
### This file is part of Website.

# ===================================================================== INFO ==
# This is the CRIMSON configuration file. Copy this file as `.env` in your
# project checkout to override default crimson configuration values.
#
# NOTE: Options labeled "CHANGE ME!" MUST be modified.

# ================================================================== GENERAL ==
# Contains options for project metadata.
# PROJECT_NAME - Sets the project name in the docker compose stack.
#                i.e: crimson-web-1
PROJECT_NAME="website"

# ============================================================== DEVELOPMENT ==
# Sets if CRIMSON should run in "production" or "development" mode. Read
# `src/config.php` in crimson for more information.
ENVIRONMENT="development"

# ====================================================================== WEB ==
# Sets what port and bind that nginx will listen on. This is how you will
# externally access your app.
#
HTTP_BIND=127.0.0.1
HTTP_PORT=80

# ================================================================= DATABASE ==
# If POSTGRES_ENABLED is set to `true`, then the crimson postgres database will
# be enabled. Configure the below settings for the connetions options to this
# database.
#
# WARNING: Do NOT change these values after the fist run.
#
POSTGRES_ENABLED=true
POSTGRES_DB=website
POSTGRES_USER=website
POSTGRES_PASSWORD=cannothackme

# ====================================================================== API ==
# If API_ENABLED is set to `true`, then the crimson postgrest container will be
# enabled. Postgres uses JWTs to do verification, so you MUST set a API_SECRET
# if the api is enabled. API_ROLE sets which role will unauthenticated api
# users will be inside postgres. API_SCHEMA sets which postgres schema that
# postgrest will use.
#
# For more information about postgres: <https://docs.postgrest.org/en/v12/>.
#
# WARNING: POSTGRES_ENABLED must be set to `true` if the API is also enabled.
#
API_ENABLED=false

# ================================================================== Website ==
# These settings tell Website where you are hosting your site. This is required
# since all links in Website are generated using these values.
#
# CHANGE ME!
#
WEBSITE_HOST="freya.cat"
WEBSITE_ALLOWED_HOSTS="www.freya.cat freya.cat"
WEBSITE_BASE_PATH="/"