Author
|
zPlus <zplus@peers.community>
2023-03-21 21:19:10
|
Committer
|
zPlus <zplus@peers.community>
2023-03-21 21:19:10
|
Commit
|
64641d0
(patch)
|
Tree
|
31edd07
|
Parent(s)
|
|
Add environment variables in .forward file.
Allows specifying of emails settings as envvars from .forward file.
commits diff:
b51c923..64641d0
2 files changed,
3 insertions,
3 deletions
—
download
Diffstat
Diff options
+1/-1
M documentation/administrators
165
|
165
|
|
|
166
|
166
|
|
3. Create the file /home/git/.forward with the content:
|
167
|
167
|
|
|
168
|
|
- |
|/home/git/clif/emails.py
|
|
168
|
+ |
"| SERVER_DOMAIN= REPOSITORIES_PATH= /home/git/clif/emails.py"
|
169
|
169
|
|
|
170
|
170
|
|
This is a sendmail file (also used by postfix) for deciding how incoming messages
|
171
|
171
|
|
shall be delivered to the the system user. For our purposes, we instruct postfix
|
+2/-2
M emails.py
22
|
22
|
|
|
23
|
23
|
|
# The "domain" part in address@domain for the mailing lists.
|
24
|
24
|
|
# All emails addressed to another domain will be ignored.
|
25
|
|
- |
SERVER_DOMAIN = None
|
|
25
|
+ |
SERVER_DOMAIN = os.environ.get('SERVER_DOMAIN')
|
26
|
26
|
|
|
27
|
27
|
|
# The folder containing the git repositories.
|
28
|
28
|
|
# If using Gitolite, this is the Gitolite's "repositories" folder
|
29
|
|
- |
REPOSITORIES_PATH = None
|
|
29
|
+ |
REPOSITORIES_PATH = os.environ.get('REPOSITORIES_PATH')
|
30
|
30
|
|
|
31
|
31
|
|
# Level | Numeric value
|
32
|
32
|
|
# ---------|--------------
|