mirror of
https://github.com/spacebarchat/docs.git
synced 2024-11-08 11:22:31 +01:00
Merge branch 'master' of github.com:MaddyUnderStars/fosscord-docs
This commit is contained in:
commit
f2dee47238
@ -13,9 +13,10 @@ You **must** have access to a terminal for this guide.
|
||||
|
||||
- [Git](https://git-scm.com/)
|
||||
- [NodeJS](https://nodejs.org). Version 16+
|
||||
- [Python](https://www.python.org/). Version 3+. Make sure this is executable via `python` in your terminal.
|
||||
- [Python](https://www.python.org/). Version 3+. Make sure this is executable via `python` in your terminal.
|
||||
(See: `python-is-python3` package)
|
||||
- On Linux: `gcc`/`g++`. Packaged with `build-essential` on Debian/Ubuntu and `base-devel` on Arch.
|
||||
- On Windows: [Visual Studio](https://visualstudio.microsoft.com/) (**NOT** VSCode) with the C++ development package.
|
||||
- On Windows: [Visual Studio](https://visualstudio.microsoft.com/) (**NOT** VSCode) with the `Desktop development with C++` package.
|
||||
|
||||
## Setup
|
||||
|
||||
|
32
docs/setup/server/systemd.md
Normal file
32
docs/setup/server/systemd.md
Normal file
@ -0,0 +1,32 @@
|
||||
# Systemd
|
||||
|
||||
Below is an example Systemd service for running Fosscord.
|
||||
Save it in `/etc/systemd/system/fosscord.service`.
|
||||
|
||||
```ini
|
||||
[Unit]
|
||||
Description=Fosscord, for better and secure communication
|
||||
|
||||
[Service]
|
||||
User=<your user>
|
||||
WorkingDirectory=<fosscord directory>
|
||||
ExecStart=npm run start
|
||||
Restart=always
|
||||
StandardError=journal
|
||||
StandardOutput=journal
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
```
|
||||
|
||||
Make sure to edit the file as needed, such as replacing the user.
|
||||
It is a good idea to create a new user on your system to run Fosscord.
|
||||
If you would like to run the API, CDN or Gateway separately,
|
||||
you can edit the `ExecStart` command used in line with the [npm script](npmScripts.md).
|
||||
Also be sure to run [RabbitMQ](configuration/rabbitmq.md) in that case.
|
||||
|
||||
You can now start Fosscord using `sudo systemctl start fosscord`.
|
||||
|
||||
To automatically run Fosscord on boot, use `sudo systemctl enable fosscord`.
|
||||
|
||||
To view the server logs, you may use `journalctl -u fosscord.service`, or with `-f` to view them as they come.
|
Loading…
Reference in New Issue
Block a user