Incognito / one-time-secret

Self-Host secrets on a host that you choose. Minimal requirements. Designed for easy setup.
MIT License
32 stars 5 forks source link

Systemd service (RH8/Centos8) #337

Closed RaNd250 closed 3 years ago

RaNd250 commented 3 years ago

Below is my systemd config The install path is opt/one-time-secret/

create /lib/systemd/system/ots.service

nano /lib/systemd/system/ots.service systemctl daemon-reload systemctl start ots

`[Unit] Description=OneTimeSecret Service After=network.target

[Service] Environment=PUBLISH_SECRET_URI='/' Environment=KEY_NAME_RANDOM_BYTES=32 Environment=PORT=80 Environment=DOMAIN=ots.example.com Environment=HTTP_TIMEOUT_MS=5000 Environment=MAX_UPLOAD_KB=128

Type=simple ExecStart=/usr/bin/node /opt/one-time-secret/dist/bin/cli.js web:start Restart=on-failure

[Install] WantedBy=multi-user.target`

Incognito commented 3 years ago

Thanks for the contribution, this will make it into the Wiki next time I sweep through and do updates :+1:

Incognito commented 3 years ago

Thanks again, I've added it to the wiki

https://github.com/Incognito/one-time-secret/wiki/Setup:-Adding-to-systemd