-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env.example
204 lines (196 loc) · 8.82 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
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
# PHP dotENV - https://github.com/vlucas/phpdotenv
# Copy this file as new /.env & adjust all settings to the corresponging Environment!
ENVIRONMENT="development" # Use "development" for any non-productive envs
LOCALE="de_CH" # Required!
TIMEZONE="Europe/Zurich" # Required!
# Database connection (required):
MYSQL_HOST="localhost" # Required! Use "localhost" or Docker service hostname
MYSQL_DATABASE="" # Required!
MYSQL_USER="" # Required!
MYSQL_PASSWORD=""
MYSQL_CHARSET="utf8mb4"
# Directory paths (required):
APP_ROOT="/var/www" # Absolute path to App root, no trailing /-slash
WWW_ROOT="${APP_ROOT}/html" # No trailing /-slash
INCLUDES_DIR="${WWW_ROOT}/includes/"
ERRORLOG_DIR="${APP_ROOT}/data/errlog/"
UPLOAD_DIR="${APP_ROOT}/data/upload/"
MODELS_DIR="${WWW_ROOT}/models/"
VIEWS_DIR="${WWW_ROOT}/templates/"
CONTROLLERS_DIR="${WWW_ROOT}/controller/"
FILES_DIR="${APP_ROOT}/data/files/"
GALLERY_DIR="${APP_ROOT}/data/gallery/"
GALLERY_UPLOAD_DIR="${UPLOAD_DIR}new-galleries/"
IMAGES_DIR="${WWW_ROOT}/images/"
APOD_TEMP_IMAGE_DIR="${APP_ROOT}/data/temp/"
GO_IMAGES_DIR="${IMAGES_DIR}go/"
HZ_MAPS_DIR="${APP_ROOT}/data/hz_maps"
HZ_MAPS_IMAGES_DIR="${IMAGES_DIR}hz/"
QRCODEIMAGES_DIR="${IMAGES_DIR}swissqrbill"
TAUSCHARTIKEL_IMGAGES_DIR="${APP_ROOT}/data/tauschboerse/"
USERIMAGES_DIR="${APP_ROOT}/data/userimages/"
USERIMAGES_ARCHIVE_DIR="${USERIMAGES_DIR}archiv/"
# Application settings:
HOSTNAME=""
HTTP_PROTOCOL="https" # https or http
SITE_FQDN="${HTTP_PROTOCOL}://${HOSTNAME}" # No trailing slash
PAGETITLE_SUFFIX=" - ${HOSTNAME}"
ENCODING="UTF-8"
EMAILS_FROM="info@${HOSTNAME}"
ADMIN_EMAIL="root@${HOSTNAME}"
ERROR_REPORTING_LEVELS="E_ALL & ~E_DEPRECATED & ~E_STRICT" # Use E_ALL for development
ERRORLOG_FILETYPE=".log" # Extension with .-prefix
GIT_REPOSITORY_ROOT="${APP_ROOT}/"
GIT_REPOSITORY_USER="GITUSER"
GIT_REPOSITORY_REPO="REPONAME"
GIT_REPOSITORY_URL="https://github.com/${GIT_REPOSITORY_USER}/${GIT_REPOSITORY_REPO}/commit/"
TELEGRAM_CHATLINK="" # Full URL to a Telegram-Chat
TELEGRAM_PARSE_MODE="html"
TELEGRAM_DISABLE_WEBPAGE_PREVIEW="false"
TELEGRAM_DISABLE_NOTIFICATION="false"
TWITTER_NAME="" # Without prefixed @-char
FACEBOOK_APPID=""
FACEBOOK_PAGENAME=""
URLPATH_ACTIONS="/actions/"
URLPATH_AJAX="${URLPATH_JS}ajax/"
URLPATH_CSS="/css/"
URLPATH_IMAGES="/images/"
URLPATH_JS="/js/"
URLPATH_RSS="${SITE_FQDN}/?layout=rss"
URLPATH_SCRIPTS="/scripts/"
URLPATH_USERIMAGES="/data/userimages/"
URLPATH_UTILS="/util/"
USERLEVEL_ALLE=
USERLEVEL_USER=
USERLEVEL_MEMBER=
USERLEVEL_ADMIN=
USER_TIMEOUT= # In seconds: 3 Minutes
USER_OLD_AFTER= # In seconds: 3 Jahre
USER_USE_CURRENT_LOGIN="true"
USER_USE_REGISTRATION_CODE="true"
USER_USE_ONLINE_LIST="true"
USERIMAGE_ENABLED="true"
USERIMAGE_EXTENSION=".jpg" # Extension with .-prefix
USERIMAGE_SIZE_LARGE=
USERIMAGE_SIZE_SMALL=
USERIMAGE_DEFAULT="none${USERIMAGE_EXTENSION}" # Must be within USERIMAGES_DIR
ADDLE_MAX_GAMES=1
ADDLE_BASE_POINTS=1600
ADDLE_MAX_POINTS_TRANSFERABLE=32
BUGTRACKER_FILTER_DEFAULT="?show[]=open&show[]=notdenied&show[]=assigned&show[]=unassigned"
CHESS_DWZ_BASE_POINTS=1600
CHESS_DWZ_MAX_POINTS_TRANSFERABLE=32
FORUM_DEFAULT_MAXDEPTH=10
FORUM_THREAD_CLEARCACHE_AFTER=30 # In Tagen
GALLERY_MAX_PIC_WIDTH=800 # In Pixel
GALLERY_MAX_PIC_HEIGHT=600 # In Pixel
GALLERY_MAX_THUMB_WIDTH=150 # In Pixel
GALLERY_MAX_THUMB_HEIGHT=150 # In Pixel
APOD_GALLERY_ID= # Match to gallery_albums-Table `id`
GO_OFFSET_PIC=250 # In Pixel
GO_LINKRADIUS=15 # In Pixel
GO_FIELDSIZE=40 # In Pixel
GO_LINEWIDTH=2 # In Pixel
GO_STARDOTWIDTH=10 # In Pixel
GO_STONEBIGWIDTH=190 # In Pixel
GO_LASTSTONEWIDTH=10 # In Pixel
URLPATH_HZ_IMAGES="${URLPATH_IMAGES}hz/"
HZ_MAPS_EXTENSION=".gif"
HZ_MAX_GAMES=5
HZ_TURN_TIME=259200 # In Sekunden: 3 Tage
HZ_TURN_COUNT=4
HZ_TURN_ADD_MONEY=10
SETI_TEAM_NAME=""
SETI_EMAIL=""
STRING_NOT_FOUND="Reference not found in String list"
# Session settings:
SESSION_ID="z"
SESSION_LIFETIME= # In seconds
ENABLE_COOKIES="true"
COOKIE_DOMAIN=".${HOSTNAME}" # Prefixed .-dot is recommended
COOKIE_EXPIRATION= # In seconds. Note: seconds to be added to current time()+COOKIE_EXPIRATION!
COOKIE_PATH="/"
COOKIE_SAMESITE="Lax" # Strict, None, or Lax (default/fallback)
COOKIE_HTTPONLY="true" # true or false (true is strongly recommended)
COOKIE_SECURE="" # Use true=https, false=http (corresponding to HTTP_PROTOCOL)
COOKIE_SESSION="${SESSION_ID}"
COOKIE_USERID="autologin_id"
COOKIE_USERPW="autologin_pw"
# Smarty Templates settings:
SMARTY_CACHE="${APP_ROOT}/data/smartylib/cache/"
SMARTY_COMPILE="${APP_ROOT}/data/smartylib/templates_c/"
SMARTY_DIR="${WWW_ROOT}/smartylib/"
SMARTY_TRUSTED_DIRS="${WWW_ROOT}/scripts/" # Comma-separated list of paths
SMARTY_TEMPLATES_HTML="${VIEWS_DIR}" # Comma-separated list of paths
SMARTY_PACKAGES_DIR="${WWW_ROOT}/packages/"
SMARTY_PACKAGES_EXTENSION=".php"
SMARTY_DEFAULT_TPL_ID=
SMARTY_404PAGE_TPL_FILE="file:layout/pages/404_page.tpl"
# Services, APIs, and API-Keys:
# - Facebook GraphAPI
FACEBOOK_API_KEY=""
# - Google APIs
GOOGLE_RECAPTCHA_LOCALE="de-CH" # reCAPTCHA supported languages: https://developers.google.com/recaptcha/docs/language
GOOGLE_RECAPTCHA_KEY=""
GOOGLE_RECAPTCHA_SECRET=""
GOOGLE_MAPS_API_KEY=""
GOOGLE_MAP_API="https://maps.googleapis.com/maps/api/geocode/json?key=${GOOGLE_MAPS_API_KEY}"
# - ipinfo.io API
IPINFO_API_KEY="" # API can be queried without Token (but has lower rate limit)
# - NASA APIs
SPACEWEATHER_SOURCE="https://www.spaceweather.com/"
NASA_API_KEY="DEMO_KEY" # API can be queried with the DEMO_KEY, but has rate limits
NASA_APOD_API="https://api.nasa.gov/planetary/apod?api_key=${NASA_API_KEY}"
NASA_APOD_SOURCE="https://apod.nasa.gov/apod/"
NASA_NEO_API="https://api.nasa.gov/neo/rest/v1/stats?api_key=${NASA_API_KEY}"
NASA_DONKI_API_CME="https://api.nasa.gov/DONKI/CME?startDate=yyyy-MM-dd&endDate=yyyy-MM-dd&api_key=${NASA_API_KEY}"
NASA_DONKI_API_CMEA="https://api.nasa.gov/DONKI/CMEAnalysis?startDate=2016-09-01&endDate=2016-09-30&mostAccurateOnly=true&speed=500&halfAngle=30&catalog=ALL&api_key=${NASA_API_KEY}"
NASA_DONKI_API_GST="https://api.nasa.gov/DONKI/GST?startDate=yyyy-MM-dd&endDate=yyyy-MM-dd&api_key=${NASA_API_KEY}"
NASA_DONKI_API_IPS="https://api.nasa.gov/DONKI/IPS?startDate=yyyy-MM-dd&endDate=yyyy-MM-dd&location=LOCATION&catalog=CATALOG&api_key=${NASA_API_KEY}"
NASA_DONKI_API_FLR="https://api.nasa.gov/DONKI/FLR?startDate=yyyy-MM-dd&endDate=yyyy-MM-dd&api_key=${NASA_API_KEY}"
NASA_DONKI_API_SEP="https://api.nasa.gov/DONKI/SEP?startDate=yyyy-MM-dd&endDate=yyyy-MM-dd&api_key=${NASA_API_KEY}"
NASA_DONKI_API_MPC="https://api.nasa.gov/DONKI/MPC?startDate=yyyy-MM-dd&endDate=yyyy-MM-dd&api_key=${NASA_API_KEY}"
NASA_DONKI_API_RBE="https://api.nasa.gov/DONKI/RBE?startDate=yyyy-MM-dd&endDate=yyyy-MM-dd&api_key=${NASA_API_KEY}"
NASA_DONKI_API_HSS="https://api.nasa.gov/DONKI/HSS?startDate=yyyy-MM-dd&endDate=yyyy-MM-dd&api_key=${NASA_API_KEY}"
NASA_DONKI_API_WSA="https://api.nasa.gov/DONKI/WSAEnlilSimulations?startDate=2016-01-06&endDate=2016-01-06&api_key=${NASA_API_KEY}"
NASA_DONKI_API_Notifications="https://api.nasa.gov/DONKI/notifications?startDate=2014-05-01&endDate=2014-05-08&type=all&api_key=${NASA_API_KEY}"
# - SETI
SETI_TEAM_URL="http://setiathome2.ssl.berkeley.edu/fcgi-bin/fcgi?cmd=team_lookup_xml&name=${SETI_TEAM_NAME}" # FIXME: no longer working
# - Telegram Bot API
TELEGRAM_BOT="" # as registered with @BotFather
TELEGRAM_BOT_API_KEY="" # as provided by @BotFather
TELEGRAM_BOT_API="https://api.telegram.org/bot${TELEGRAM_BOT_API_KEY}/"
TELEGRAM_BOT_API_AUTH_PASSWORD="" # (string) A secret password required to authorise access to the webhook
TELEGRAM_BOT_API_IPWHITELIST="" # (comma separated list) When using `validate_request`, like: 1.2.3.4,1.1.1.1-2.2.2.2
TELEGRAM_BOT_API_USERWHITELIST="" # (comma separated list) A list of Telegram UserIDs that have admin access to your bot
TELEGRAM_BOT_API_SSLCERT_PATH="" # (string) Path to a self-signed certificate (if necessary), like: /server.crt
TELEGRAM_BOT_API_CHAT="" # (integer) Chat-ID where the Telegram Bot will post to
TELEGRAM_BOT_API_FILES_DIR="" # Comma-separated list of paths.
TELEGRAM_BOT_API_LOG_DIR="${ERRORLOG_DIR}" # (string) Path to where the log files should be put.
# - Twitter API
TWITTER_API_KEY=""
TWITTER_API_SECRET=""
TWITTER_API_TOKEN=""
TWITTER_API_TOKENSECRET=""
TWITTER_API_CALLBACK_URL=""
# zorg settings:
VORSTAND_USER= # Match to user-Table `id`
BARBARA_HARRIS= # Match to user-Table `id`
ROSENVERKAEUFER= # Match to user-Table `id`
THE_ARCHITECT= # Match to user-Table `id`
ANFICKER_USER_ID=
ZORG_VEREIN_NAME="zorg Verein"
ZORG_VEREIN_EMAIL=""
ZORG_VEREIN_STRASSE=""
ZORG_VEREIN_PLZ=
ZORG_VEREIN_ORT="St. Gallen"
ZORG_VEREIN_LAND="Schweiz"
ZORG_VEREIN_LAND_ISO2="CH"
ZORG_VEREIN_KONTO_BANK="St. Galler Kantonalbank"
ZORG_VEREIN_KONTO_SWIFT="KBSGCH22"
ZORG_VEREIN_KONTO_IBAN="CH7500781622431172000"
ZORG_VEREIN_KONTO_IBAN_QRBILL="CH9730781622431172000"
ZORG_VEREIN_KONTO_CURRENCY="CHF"
ZORG_VEREIN_KONTO_BESRID=""
# Local Development and Debugging settings:
DEBUG_SCOPE="" # (Optional) A File or Function name to debug