home » zplus/clif.git
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 deletionsdownload


Diffstat
-rw-r--r-- documentation/administrators 2
-rwxr-xr-x emails.py 4

Diff options
View
Side
Whitespace
Context lines
Inter-hunk lines
+1/-1 M   documentation/administrators
index 083f8e3..7f53a04
old size: 6K - new size: 6K
@@ -165,7 +165,7 @@ system user "git"
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
index 334b6f3..fea03fb
old size: 11K - new size: 11K
@@ -22,11 +22,11 @@ import sys
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 # ---------|--------------