Add flame

This commit is contained in:
thomas 2022-04-14 00:27:03 +02:00
parent 79cee1b8e1
commit 8817ddba0a
10 changed files with 100 additions and 0 deletions

View file

View file

@ -0,0 +1 @@
/etc/default/flame

View file

@ -0,0 +1,8 @@
Package: flame
Version: %VERSION%
Section: base
Priority: optional
Architecture: all
Depends:nodejs
Maintainer: Thomas Legay <thomas@syngate.fr>
Description: flame

View file

@ -0,0 +1,5 @@
#!/bin/bash
id flame &> /dev/null || useradd flame -r -s /bin/false
chown -R flame:flame /var/lib/flame

View file

@ -0,0 +1,5 @@
PORT=5005
NODE_ENV=production
VERSION=2.3.0
PASSWORD=flame_password
SECRET=e02eb43d69953658c6d07311d6313f2d4467672cb881f96b29368ba1f3f4da4b

View file

@ -0,0 +1,13 @@
[Unit]
Description=Flame server
After=multi-user.target
[Service]
User=flame
Group=flame
EnvironmentFile=/etc/default/flame
ExecStart=/usr/bin/node server.js
WorkingDirectory=/usr/share/flame
[Install]
WantedBy=multi-user.target