1
0
Fork 0

readme added finally and sample systemd service file

This commit is contained in:
grumbulon 2022-04-04 10:25:19 -04:00
parent fe428565f5
commit 8d70e670ee
2 changed files with 37 additions and 0 deletions

23
README.md Normal file
View file

@ -0,0 +1,23 @@
# waifurudor.de
It's like foxrudor.de for anime girls, but worse
## Server Install
Clone the repo to where ever you will be hosting this and run the following command to install the dependencies.
```
npm install
```
Now that the dependencies are taken care of you can verify it runs with `npm start` in the root directory of the project. If it tells you it is listening on a port you're probably good to go.
## Running as a service
I don't know anything so I spent some time (10 minutes) creating the provided sample systemd service file.
The user in the file needs accesss to the assets directory under `./waifurudor.de/src/public/` so the """app""" can pull images from Danbooru.
## Nginx
Yeah I set up a .conf file for this for my test instance but it sucks and you could probably do better so I won't share it just know it is possible to actually run this as a website.
### What's next
I have some small improvements in mind before I give up and call this "done".

14
waifurudor.de.service Normal file
View file

@ -0,0 +1,14 @@
[Unit]
Description=waifurudor.de
[Service]
ExecStart=npm start
Restart=always
User=none
Group=nogroup
Environment=PATH=/usr/bin:/usr/local/bin
Environment=NODE_ENV=production
WorkingDirectory=/whatever/user/waifurudor.de/src/
[Install]
WantedBy=multi-user.target