Document and deploy opt-in account backup recovery
This commit is contained in:
1 parent
d1ad61b121
commit
92bd75c196
8 files changed
+75
-30
No files matched your search
@@ -17,3 +17,5 @@ COULOBRE_BROKER_URL=amqp://coulobre:@127.0.0.1:5672/coulobre
|
||||
# COULOBRE_LOCAL_ACCOUNT_BACKUPS=1
|
||||
# COULOBRE_LOCAL_ACCOUNT_BACKUP_MAIL=1
|
||||
# COULOBRE_LOCAL_WEBSITE_RESTORE=1
|
||||
# COULOBRE_LOCAL_DATABASE_RESTORE=1
|
||||
# COULOBRE_LOCAL_MAILBOX_RESTORE=1
|
||||
@@ -1,5 +1,5 @@
|
||||
[Unit]
|
||||
Description=Coulobre local website restore socket
|
||||
Description=Coulobre local account restore socket
|
||||
|
||||
[Socket]
|
||||
ListenStream=/run/coulobre-account-restore.sock
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[Unit]
|
||||
Description=Coulobre local website restore request
|
||||
Description=Coulobre local account restore request
|
||||
CollectMode=inactive-or-failed
|
||||
|
||||
[Service]
|
||||
@@ -8,9 +8,8 @@ User=root
|
||||
WorkingDirectory=/opt/coulobre
|
||||
StateDirectory=coulobre/account-restores
|
||||
StateDirectoryMode=0700
|
||||
ReadWritePaths=-/srv/coulobre/web
|
||||
UMask=0077
|
||||
ExecStart=/opt/coulobre/bin/coulobre-account-backup restore-website-request
|
||||
ExecStart=/opt/coulobre/bin/coulobre-account-backup restore-request
|
||||
StandardInput=socket
|
||||
StandardOutput=socket
|
||||
StandardError=journal
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
[Unit]
|
||||
After=mariadb.service
|
||||
|
||||
[Service]
|
||||
Environment=COULOBRE_LOCAL_DATABASE_RESTORE=1
|
||||
ReadWritePaths=-/var/lib/coulobre/database-node
|
||||
@@ -0,0 +1,6 @@
|
||||
[Unit]
|
||||
After=postfix.service dovecot.service
|
||||
|
||||
[Service]
|
||||
Environment=COULOBRE_LOCAL_MAILBOX_RESTORE=1
|
||||
ReadWritePaths=-/srv/coulobre-mail
|
||||
@@ -0,0 +1,3 @@
|
||||
[Service]
|
||||
Environment=COULOBRE_LOCAL_WEBSITE_RESTORE=1
|
||||
ReadWritePaths=-/srv/coulobre/web
|
||||
Reference in new issue
Block a user