summaryrefslogtreecommitdiffstats
path: root/roles/upload/templates/upload.service
blob: 2d65a7445cd3c383776b6907b8566fff0db40403 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# {{ ansible_managed }}

[Unit]
Description=PsiTransfer
After=syslog.target network.target

[Service]
Type=simple
User={{ upload_user }}
WorkingDirectory=/home/{{ upload_user }}/psitransfer
ExecStart=/usr/bin/node app.js
Environment=NODE_ENV=production PSITRANSFER_ADMIN_PASS="{{ upload_admin_password }}" PSITRANSFER_UPLOAD_PASS="{{ upload_password }}" PSITRANSFER_UPLOAD_DIR="{{ upload_dir }}"
Restart=always

[Install]
WantedBy=multi-user.target