Clean up config & add comments.

This commit is contained in:
Fern Garden 2025-07-16 18:46:12 +08:00
parent b504700e61
commit c2fc35e12d
18 changed files with 162 additions and 114 deletions

View file

@ -10,6 +10,7 @@ in {
options.services.webone.enable = mkEnableOption "Enable WebOne HTTP proxy.";
config = mkIf cfg.enable {
# Create user & group for service.
users.groups.webone = {};
users.users.webone = {
@ -19,6 +20,7 @@ in {
group = "webone";
};
# Create config directory and log file, and set ownership to webone user.
systemd.tmpfiles.settings = {
"10-webone" = {
"/var/log/webone.log" = {
@ -38,6 +40,7 @@ in {
};
};
# Create a systemd service.
systemd.services.webone = {
description = "WebOne HTTP Proxy Server";
documentation = ["https://github.com/atauenis/webone/wiki/"];