-
-
Notifications
You must be signed in to change notification settings - Fork 63
/
docker-compose.yml
260 lines (242 loc) · 8.11 KB
/
docker-compose.yml
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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
version: '3.7'
services:
ssp-app:
image: tiredofit/self-service-password:latest
container_name: ssp-app
labels:
- traefik.enable=true
- traefik.frontend.rule=Host:url.example.com
- traefik.port=80
- traefik.protocol=http
- traefik.docker.network=proxy
- traefik.backend=ssp-app
volumes:
### Map /www/ssp if you want to configure the entire application
- ./data/:/www/ssp
#### OR ####
### Map /assets/custom if you want to overwrite/add files on startup and rely on source inside image. Follow directory structure of inside /www/ssp to overwrite
#- ./assets/custom:/assets/custom
### You can also just map the configuration directory outside of the container as well
#- ./config:/www/ssp/conf
- ./logs/:/www/logs
environment:
## Set to Manual if you want to edit the configuration yourself without Env Vars
- DEBUG_MODE=TRUE
- SETUP_TYPE=AUTO
# LDAP Settings
- LDAP_SERVER=ldap://openldap.example.com
- LDAP_STARTTLS=false
- LDAP_BINDDN=cn=admin,dc=example,dc=com
- LDAP_BINDPASS=supersecurepassword
- LDAP_BASE_SEARCH=ou=people,dc=example,dc=com
- LDAP_LOGIN_ATTRIBUTE=uid
- LDAP_FULLNAME_ATTRIBUTE=cn
- LDAP_CA_CERTIFICATE=/www/ssp/ca.pem
# Active Directory mode
# true=use unicodePwd as password field
# false=LDAPv3 standard behavior
- ADMODE=false
# Force account unlock when password is changed
- AD_OPT_FORCE_UNLOCK=false
# Force user change password at next login
- AD_OPT_FORCE_PWD_CHANGE=false
# Allow user with expired password to change password
- AD_OPT_CHANGE_EXPIRED_PASSWORD=false
# Samba mode
# true=update sambaNTpassword and sambaPwdLastSet attributes too
# false=just update the password
- SAMBA_MODE=false
- SAMBA_MIN_AGE=5
- SAMBA_MAX_AGE=45
- SAMBA_EXPIRE_DAYS=90
# Shadow options - require shadowAccount objectClass
# Update shadowLastChange
- SHADOW_OPT_UPDATE_SHADOWLASTCHANGE=false
- SHADOW_OPT_UPDATE_SHADOWEXPIRE=false
# Hash mechanism for password:
# SSHA
# SHA
# SMD5
# MD5
# CRYPT
# clear (the default)
# auto (will check the hash of current password)
# This option is not used with ADMODE=true
- PASSWORD_HASH=auto
# Prefix to use for salt with CRYPT
- PASSWORD_HASH_CRYPT_SALT_LENGTH=6
# Local password policy
# This is applied before directory password policy
# Minimal length
- PASSWORD_MIN_LENGTH=0
# Maximal length
- PASSWORD_MAX_LENGTH=0
# Minimal lower characters
- PASSWORD_MIN_LOWERCASE=0
# Minimal upper characters
- PASSWORD_MIN_UPPERCASE=0
# Minimal digit characters
- PASSWORD_MIN_DIGIT=0
# Minimal special characters
- PASSWORD_MIN_SPECIAL=0
# Minimum number of different classes of characters
- PASSWORD_COMPLEXITY=0
# Dont reuse the same password as currently
- PASSWORD_NO_REUSE=true
# Definition of special characters
- PASSWORD_SPECIAL_CHARACTERS="^a-zA-Z0-9"
# Forbidden characters
# Check that password is different than login
- PASSWORD_DIFFERENT_LOGIN=true
# use pwnedpasswords api v2 to securely check if the password has been on a leak
- PASSWORD_USE_PWNED=FALSE
# Show policy constraints message:
# always
# never
# onerror
- PASSWORD_SHOW_POLICY=never
# Position of password policy constraints message:
# above - the form
# below - the form
- PASSWORD_SHOW_POLICY_POSITION=above
# disallow use of the only special character as defined in `$pwd_special_chars` at the beginning and end
- PASSWORD_NO_SPECIAL_ENDS=false
# Who changes the password?
# Also applicable for question/answer save
# user=the user itself
# manager=the above binddn
- WHO_CAN_CHANGE_PASSWORD=user
# Show extended error message returned by LDAP directory when password is refused
- LDAP_EXTENDED_ERROR=false
# Use standard change form?
- CHANGE_PASSWORD=true
## SSH Key Change
# Allow changing of sshPublicKey?
- CHANGE_SSHKEY=false
# What attribute should be changed by the CHANGE_SSHKEY action?
- LDAP_SSHKEY_ATTRIBUTE=sshPublicKey
# Who changes the sshPublicKey attribute?
# Also applicable for question/answer save
# user=the user itself
# manager=the above binddn
- WHO_CAN_CHANGE_SSHKEY=user
# Notify users anytime their sshPublicKey is changed
## Requires mail configuration below
- NOTIFY_ON_SSHKEY_CHANGE=false
## Questions/answers
# Use questions/answers?
# true (default)
# false
- QUESTIONS_ENABLED=false
# Allow to register more than one answer?
- QUESTIONS_MULTIPLE_ANSWERS= false
# Answer attribute should be hidden to users!
- QUESTIONS_ANSWER_OBJECTCLASS=extensibleObject
- LDAP_ANSWER_ATTRIBUTE=info
# Crypt answers inside the directory
- QUESTIONS_ANSWERS_CRYPT=true
## Tokens
# Use tokens?
# true
# false
- USE_TOKENS=true
# Crypt tokens?
# true
# false
- TOKEN_CRYPT=true
# Token lifetime in seconds
- TOKEN_LIFETIME=3600
## Mail
# LDAP mail attribute
- LDAP_MAIL_ATTRIBUTE=mail
# Who the email should come from
- MAIL_FROM_NAME=Self Service Password
# Mail Signature
#- MAIL_SIGNATURE=""
# Notify users anytime their password is changed
- NOTIFY_ON_CHANGE=true
# PHPMailer configuration (see https://github.com/PHPMailer/PHPMailer)
- SMTP_DEBUG=0
- SMTP_HOST=smtp.example.com
- SMTP_AUTH_ON=true
- SMTP_PASS=smtppassword
- SMTP_TIMEOUT=30
- SMTP_PORT=587
- SMTP_SECURE_TYPE=tls
- SMTP_AUTOTLS=false
- MAIL_CONTENTTYPE="text/plain"
- MAIL_WORDWRAP=80
- MAIL_CHARSET="utf8"
- MAIL_PRIORITY=3
- MAIL_NEWLINE=PHP_EOL
## SMS
- USE_SMS=false
# SMS method (mail, api)
- SMS_METHOD="mail"
- SMS_API_LIB="lib/smsapi.inc.php"
# GSM number attribute
- LDAP_SMS_ATTRIBUTE="mobile"
# Partially hide number
- SMS_PARTIAL_HIDE_NUMBER=true;
# Send SMS mail to address
- SMS_MAIL_TO="{sms_attribute}@service.provider.com"
# Subject when sending email to SMTP to SMS provider
- SMS_MAIL_SUBJECT="Provider code"
# Message
- SMS_MESSAGE="{smsresetmessage} {smstoken}"
# Remove non digit characters from GSM number
- SMS_SANITIZE_NUMBER=false
# Truncate GSM number
- SMS_TRUNCATE_NUMBER=false
- SMS_TRUNCATE_NUMBER_LENGTH=10$sms_truncate_number_length = 10;
# SMS token length
- SMS_TOKEN_LENGTH=6
# Max attempts allowed for SMS token
- SMS_TOKEN_MAX_ATTEMPTS=3
## CAPTCHA
# Use Google reCAPTCHA (http://www.google.com/recaptcha)
- USE_RECAPTCHA=false
# Go on the site to get public and private key
- RECAPTCHA_PUB_KEY=akjsdnkajnd
- RECAPTCHA_PRIV_KEY=aksdjnakjdnsa
# Customization (see https://developers.google.com/recaptcha/docs/display)
- RECAPTCHA_THEME="light"
- RECAPTCHA_TYPE="image"
- RECAPTCHA_SIZE="normal"
# reCAPTCHA request method, null for default, Fully Qualified Class Name to override
# Useful when allow_url_fopen=0 ex. $recaptcha_request_method = '\ReCaptcha\RequestMethod\CurlPost';
- RECAPTCHA_REQUEST_METHOD=null
## Encryption, decryption keyphrase
- SECRETKEY=secretkey
## Networking
# Is this container behind a reverse proxy
- IS_BEHIND_PROXY=true
## Misc, Branding Settings
# Display help messages
- SHOW_HELP=true
# Display Menu on top
- SHOW_MENU=true
# Language
- LANG=en
# Debug mode
- DEBUG_MODE=false
# Logo
- LOGO="images/ltb-logo.png"
# Background Image
- BACKGROUND_IMAGE="images/unsplash-space.jpeg"
## Default action
# change
# sendtoken
# sendsms
- DEFAULT_ACTION=change
networks:
- proxy
- services
restart: always
networks:
proxy:
external: true
services:
external: true