This commit is contained in:
cpu
2025-05-09 23:40:18 +02:00
parent e8db2d4701
commit 411d7568a7
5 changed files with 18 additions and 11 deletions

View File

@@ -9,6 +9,14 @@ Clone the repository
git clone --depth 1 https://gitea.virtonline.eu/2HoursProject/nexus-timer.git
cd nexus-timer
```
If you will run the container on the docker network `traefik` find its IP subnet
```bash
docker network inspect traefik --format '{{(index .IPAM.Config 0).Subnet}}'
```
Set the subnet in the `nginx.conf`. For example:
```bash
set_real_ip_from 172.22.0.0/16
```
Build the docker image
```bash
docker build -t virt-nexus-timer .
@@ -25,7 +33,7 @@ View the example service definition:
cat systemd/virt-nexus-timer.service
```
### Create the systemd service
Use the editor to create or overwrite the service:
The editor opens to create or overwrite the service:
```bash
sudo systemctl edit --force --full virt-nexus-timer.service
```