Author
|
zPlus <zplus@peers.community>
2023-03-21 09:04:57
|
Committer
|
zPlus <zplus@peers.community>
2023-03-21 09:04:57
|
Commit
|
da87ad8
(patch)
|
Tree
|
ceec188
|
Parent(s)
|
|
Add environment variables to systemd service file.
commits diff:
3c5321f..da87ad8
2 files changed,
17 insertions,
5 deletions
—
download
Diffstat
Diff options
+5/-5
M web.py
31
|
31
|
|
|
32
|
32
|
|
# The root folder where Gitolite stores the repositories. This is used to find the
|
33
|
33
|
|
# actual repositories.
|
34
|
|
- |
GITOLITE_REPOSITORIES_ROOT = os.environ.get(GITOLITE_REPOSITORIES_ROOT, '/home/git/repositories')
|
|
34
|
+ |
GITOLITE_REPOSITORIES_ROOT = os.environ.get('GITOLITE_REPOSITORIES_ROOT')
|
35
|
35
|
|
|
36
|
36
|
|
# These are only used when anonymous cloning over HTTPS
|
37
|
|
- |
GITOLITE_SHELL = os.environ.get(GITOLITE_SHELL, '/home/git/bin/gitolite-shell')
|
38
|
|
- |
GITOLITE_HTTP_HOME = os.environ.get(GITOLITE_HTTP_HOME, '/home/git')
|
|
37
|
+ |
GITOLITE_SHELL = os.environ.get('GITOLITE_SHELL')
|
|
38
|
+ |
GITOLITE_HTTP_HOME = os.environ.get('GITOLITE_HTTP_HOME')
|
39
|
39
|
|
|
40
|
40
|
|
# The domain of this instance. This is only really used when displaying list addresses,
|
41
|
41
|
|
# or when the domain needs to be displayed on some pages.
|
42
|
|
- |
INSTANCE_DOMAIN = 'domain.local'
|
|
42
|
+ |
INSTANCE_DOMAIN = os.environ.get('INSTANCE_DOMAIN')
|
43
|
43
|
|
|
44
|
44
|
|
# How many commits to show in the log page
|
45
|
|
- |
LOG_PAGINATION = 100
|
|
45
|
+ |
LOG_PAGINATION = os.environ.get('LOG_PAGINATION')
|
46
|
46
|
|
|
47
|
47
|
|
# Enable +/- file stats in the log page. Can be disabled for performance, since
|
48
|
48
|
|
# computing diffstat on many commits for big repos could take too long.
|
+12/-0
M web.service
3
|
3
|
|
After=network.target
|
4
|
4
|
|
|
5
|
5
|
|
[Service]
|
|
6
|
+ |
# The root folder where Gitolite stores the repositories.
|
|
7
|
+ |
# Environment=GITOLITE_REPOSITORIES_ROOT=/home/git/repositories
|
|
8
|
+ |
|
|
9
|
+ |
# These are only used when anonymous cloning over HTTPS
|
|
10
|
+ |
# Environment=GITOLITE_SHELL=/home/git/bin/gitolite-shell
|
|
11
|
+ |
# Environment=GITOLITE_HTTP_HOME=/home/git
|
|
12
|
+ |
|
|
13
|
+ |
Environment=INSTANCE_DOMAIN=domain.local
|
|
14
|
+ |
Environment=LOG_PAGINATION=32
|
|
15
|
+ |
|
6
|
16
|
|
User=git
|
7
|
17
|
|
Group=git
|
|
18
|
+ |
|
8
|
19
|
|
WorkingDirectory=/home/git/clif
|
9
|
20
|
|
ExecStart=/home/git/clif/venv/bin/gunicorn --workers 4 --bind localhost:5000 web:application
|
|
21
|
+ |
|
10
|
22
|
|
Restart=always
|
11
|
23
|
|
|
12
|
24
|
|
[Install]
|