The configuration file is called setting.json
"listen": Listener for the web server, change to "0.0.0.0:5000" to listen on all interfaces
"secret": Secret used for authenticate on record upload
"logger": Enables request logging to STDOUT
OCAP_SECRET
This specifies the secret that will be used to authorize record to be uploaded.
OCAP_CUSTOMIZE_WEBSITEURL
Link on the logo to your website
OCAP_CUSTOMIZE_WEBSITELOGO
URL to your website logo
OCAP_CUSTOMIZE_WEBSITELOGOSIZE
Size of the logo shown on the page, default 32px
/var/lib/ocap/data
This is the folder where all the records is being stored in a gzipped json format json.gz
.
/var/lib/ocap/maps
All maps are stored here. Maps can be downloaded from here.
/var/lib/ocap/db
Database location stored in SQLite3 format.
docker run --name ocap-web -d \
-p 5000:5000/tcp \
-e OCAP_SECRET="same-secret"
-v ocap-records:/var/lib/ocap/data \
-v ocap-maps:/var/lib/ocap/maps \
-v ocap-database:/var/lib/ocap/db \
ghcr.io/ocap2/web:latest
This Project is based on Golang
go build -o ocap-webserver.exe ./src/web
go build -o ocap-webserver ./src/web
docker build -t ocap-webserver .