Go to file
2018-05-02 20:07:09 +02:00
emails/uploadnotification Implemented email notifications 2018-04-28 15:00:30 +02:00
lib Added expiration settings for codes 2018-05-02 20:07:09 +02:00
public Added expiration settings for codes 2018-05-02 20:07:09 +02:00
stuff Changed logo to be only slightly less cringy 2018-03-22 21:03:33 +01:00
.babelrc IE compatibility (tested on 11 and Edge so far) 2018-05-01 20:53:29 +02:00
.gitignore Production bundle optimizations 2018-04-29 22:33:27 +02:00
config.example.js Added expiration settings for codes 2018-05-02 20:07:09 +02:00
index.js IE compatibility (tested on 11 and Edge so far) 2018-05-01 20:53:29 +02:00
package-lock.json Added expiration settings for codes 2018-05-02 20:07:09 +02:00
package.json Fixed "Add user" errors 2018-05-02 12:59:47 +02:00
README.md Added expiration settings for codes 2018-05-02 20:07:09 +02:00
Recv.sublime-project Initial commit 2018-03-19 07:48:05 +01:00
webpack.config.js Production bundle optimizations 2018-04-29 22:33:27 +02:00

Installation

Copy config.example.js to config.js and review the configuration options. If this is an update, compare your config.js with config.example.js to see if anything has been added.

To build the production version:

npm run build

Service on Linux (systemd)

/etc/systemd/system/recv.service:

[Unit]
Description=Recv

[Service]
ExecStart=/usr/bin/node /srv/recv/index.js
WorkingDirectory=/srv/recv
Restart=always
RestartSec=10                       # Restart service after 10 seconds if node service crashes
StandardOutput=syslog               # Output to syslog
StandardError=syslog                # Output to syslog
SyslogIdentifier=recv
User=recv

[Install]
WantedBy=multi-user.target
systemctl enable recv.service
systemctl start recv.service