Rhinau BAC Cams
Simple site web pour regarder les cameras au bac de Rhinau.
Site : https://bac.thoxy.xyz
Build
Need golang, nodejs and yarn
On System
- Clone the repo
git clone gitea.s1.thoxy.xyz/thoxy/bac-rhn
cd bac-rhn
- Then build vite frontend
cd bac-rhn-ui
yarn install
yarn build
- copy and modify the config.sample.yml and place it in $HOME/.bac-rhn
Server:
port: 5467
prefork: false
message-path: "/home/user/.bac-rhn/message.html"
dist-path: "/go/src/gitea.s1.thoxy.xyz/thoxy/bac-rhn/bac-rhn-ui/dist" # you need to specify where you build the vite dist folder
dev: false
Database:
driver: sqlite
path: /home/user/.bac-rhn/data.sqlite
limit: 500
- Then you can build
go install
- To launch just run this command
bac-rhn
On Docker with docker-compose
version: '3'
services:
bac-rhn:
depends_on:
- gitea
container_name: "bac-rhn"
build: https://gitea.s1.thoxy.xyz/thoxy/bac-rhn.git
image: 'bac-rhn:staging'
ports:
- "5467:5467"
volumes:
- './data:/bac-rhn'
restart: always
License
MIT - Copyright © 2022 Thoxy