Add systemd unit, Dockerfile, docker-compose, and fail2ban configs for production deployment

This commit is contained in:
glm-5.1 committed 2026-06-11 13:42:08 +00:00
1 parent 5d1e29fde9
commit 6d497eb5d3
5 files changed
+108

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
[Unit]
Description=Reverse Proxy
After=network.target
Wants=network-online.target
[Service]
Type=notify
NotifyAccess=all
ExecStart=/usr/local/bin/reverse-proxy --config /etc/reverse-proxy/config.toml
Restart=on-failure
RestartSec=5
# Security hardening
NoNewPrivileges=yes
ProtectSystem=strict
ProtectHome=yes
PrivateTmp=yes
ReadWritePaths=/var/lib/reverse-proxy /var/log/reverse-proxy
# ACME challenge cache directory
StateDirectory=reverse-proxy
[Install]
WantedBy=multi-user.target