From 5c1ae97c7db40877c880bfe3889140e8bec32416 Mon Sep 17 00:00:00 2001 From: pvincent Date: Mon, 17 Nov 2025 20:54:19 +0400 Subject: [PATCH] sympa recipe --- sympa/doc/{install.md => installation.md} | 4 +- sympa/recipe/install.bash | 60 +++++++++++++++++++++++ 2 files changed, 62 insertions(+), 2 deletions(-) rename sympa/doc/{install.md => installation.md} (96%) create mode 100644 sympa/recipe/install.bash diff --git a/sympa/doc/install.md b/sympa/doc/installation.md similarity index 96% rename from sympa/doc/install.md rename to sympa/doc/installation.md index 6902de7..cd4253a 100644 --- a/sympa/doc/install.md +++ b/sympa/doc/installation.md @@ -12,7 +12,7 @@ USE OF: postfix + postgresql + ... ```bash # postfix debconf-set-selections </etc/nginx/sites-available/sympa.conf +server { + listen 80; + server_name _; + rewrite ^/$ /wws permanent; + + location /wws { + include fastcgi_params; + fastcgi_param SERVER_NAME $(hostname -f); + fastcgi_pass unix:/run/sympa/wwsympa.socket; + } + + location /static-sympa { + alias /usr/share/sympa/static_content; + } + + location /css-sympa { + alias /var/lib/sympa/css; + } + + location /pictures-sympa { + alias /var/lib/sympa/pictures; + } +} +EOF +cd /etc/nginx/sites-enabled && rm -f default && ln -sf ../sites-available/sympa.conf && cd +systemctl reload nginx + +# final word +echo Sympa successfully installed!