commit: 06955feca2a7f1c0df15727c65994065aea2c257
Author: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 22 16:00:12 2025 +0000
Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Thu Dec 25 08:38:43 2025 +0000
URL: https://gitweb.gentoo.org/proj/webapp-config.git/commit/?id=06955fec
Add support for www-servers/caddy
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>
WebappConfig/config.py | 3 ++-
WebappConfig/server.py | 13 ++++++++++++-
config/webapp-config | 1 +
3 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/WebappConfig/config.py b/WebappConfig/config.py
index 7af81de..9771776 100644
--- a/WebappConfig/config.py
+++ b/WebappConfig/config.py
@@ -1584,7 +1584,8 @@ class Config:
'nginx' : WebappConfig.server.Nginx,
'gatling' : WebappConfig.server.Gatling,
'tracd' : WebappConfig.server.Tracd,
- 'uwsgi' : WebappConfig.server.uWSGI,}
+ 'uwsgi' : WebappConfig.server.uWSGI,
+ 'caddy' : WebappConfig.server.Caddy, }
server = self.config.get('USER', 'vhost_server')
diff --git a/WebappConfig/server.py b/WebappConfig/server.py
index 25bcdf3..361a578 100644
--- a/WebappConfig/server.py
+++ b/WebappConfig/server.py
@@ -377,6 +377,16 @@ class uWSGI(Basic):
self.vhost_server_uid = get_user('uwsgi')
self.vhost_server_gid = get_group('uwsgi')
+class Caddy(Basic):
+
+ name = 'Caddy'
+ desc = 'supports installation on Caddy'
+ dep = 'www-servers/caddy'
+
+ def set_server_user(self):
+ self.vhost_server_uid = get_user('http')
+ self.vhost_server_gid = get_group('http')
+
def listservers():
OUT.notice('\n'.join(['apache',
@@ -385,4 +395,5 @@ def listservers():
'nginx',
'gatling',
'tracd',
- 'uwsgi',]))
+ 'uwsgi',
+ 'caddy',]))
diff --git a/config/webapp-config b/config/webapp-config
index 93a7d9d..3b6690e 100755
--- a/config/webapp-config
+++ b/config/webapp-config
@@ -71,6 +71,7 @@ vhost_hostname="localhost"
# gatling
# tracd
# uwsgi
+# caddy
#
# you can override this setting by using the -s switch to webapp-config