mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-17 09:37:02 +00:00
debian: Use goreleaser to generate .deb package for #89
This commit is contained in:
33
etc/linux/inbucket.service
Normal file
33
etc/linux/inbucket.service
Normal file
@@ -0,0 +1,33 @@
|
||||
[Unit]
|
||||
Description=Inbucket Disposable Email Service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=daemon
|
||||
Group=daemon
|
||||
PermissionsStartOnly=true
|
||||
|
||||
Environment=INBUCKET_LOGLEVEL=WARN
|
||||
Environment=INBUCKET_SMTP_ADDR=0.0.0.0:2500
|
||||
Environment=INBUCKET_POP3_ADDR=0.0.0.0:1100
|
||||
Environment=INBUCKET_WEB_ADDR=0.0.0.0:9000
|
||||
Environment=INBUCKET_WEB_UIDIR=/usr/local/share/inbucket/ui
|
||||
Environment=INBUCKET_WEB_GREETINGFILE=/etc/inbucket/greeting.html
|
||||
Environment=INBUCKET_STORAGE_TYPE=file
|
||||
Environment=INBUCKET_STORAGE_PARAMS=path:/var/local/inbucket
|
||||
|
||||
# Uncomment line below to use low numbered ports
|
||||
#ExecStartPre=/sbin/setcap 'cap_net_bind_service=+ep' /usr/local/bin/inbucket
|
||||
|
||||
ExecStartPre=/bin/mkdir -p /var/local/inbucket
|
||||
ExecStartPre=/bin/chown daemon:daemon /var/local/inbucket
|
||||
|
||||
ExecStart=/usr/local/bin/inbucket
|
||||
|
||||
# Give SMTP connections time to drain
|
||||
TimeoutStopSec=20
|
||||
KillMode=mixed
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user