bac-rhn

command module
v0.0.0-...-6e78754 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2023 License: MIT Imports: 16 Imported by: 0

README

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
  1. Clone the repo
git clone gitea.s1.thoxy.xyz/thoxy/bac-rhn
cd bac-rhn
  1. Then build vite frontend
cd bac-rhn-ui
yarn install
yarn build
  1. 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
  1. Then you can build
go install
  1. 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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL