mirror of
https://github.com/casjaysdevdocker/gotify
synced 2026-06-24 08:01:05 -04:00
6d557afd39
Migrate gotify Docker image to the new build-time config architecture. - rootfs/root/docker/setup/03-files.sh: rewrite to canonical form with /tmp/bin, /tmp/var, /tmp/etc, /tmp/usr handlers - rootfs/usr/local/etc/docker/functions/entrypoint.sh: update to latest template - rootfs/usr/local/etc/docker/init.d/*.sh: fix $(basename) UUOC; move inline comments above code lines - rootfs/tmp/etc/: add service config files (gotify ) deployed to /etc/ at build time - rootfs/usr/local/share/template-files/: delete; config now deployed via /tmp/etc/ and /tmp/usr/ at build time rootfs/root/docker/setup/03-files.sh rootfs/tmp/ rootfs/usr/local/etc/docker/functions/entrypoint.sh rootfs/usr/local/etc/docker/init.d/gotify.sh rootfs/usr/local/share/template-files/config/env/default.sample rootfs/usr/local/share/template-files/config/env/examples/00-directory.sh rootfs/usr/local/share/template-files/config/env/examples/addresses.sh rootfs/usr/local/share/template-files/config/env/examples/certbot.sh rootfs/usr/local/share/template-files/config/env/examples/couchdb.sh rootfs/usr/local/share/template-files/config/env/examples/dockerd.sh rootfs/usr/local/share/template-files/config/env/examples/global.sh rootfs/usr/local/share/template-files/config/env/examples/healthcheck.sh rootfs/usr/local/share/template-files/config/env/examples/mariadb.sh rootfs/usr/local/share/template-files/config/env/examples/mongodb.sh rootfs/usr/local/share/template-files/config/env/examples/networking.sh rootfs/usr/local/share/template-files/config/env/examples/other.sh rootfs/usr/local/share/template-files/config/env/examples/php.sh rootfs/usr/local/share/template-files/config/env/examples/postgres.sh rootfs/usr/local/share/template-files/config/env/examples/redis.sh rootfs/usr/local/share/template-files/config/env/examples/services.sh rootfs/usr/local/share/template-files/config/env/examples/ssl.sh rootfs/usr/local/share/template-files/config/env/examples/supabase.sh rootfs/usr/local/share/template-files/config/env/examples/webservers.sh rootfs/usr/local/share/template-files/config/env/examples/zz-entrypoint.sh rootfs/usr/local/share/template-files/config/.gitkeep rootfs/usr/local/share/template-files/config/gotify/config.yml rootfs/usr/local/share/template-files/config/gotify/.env.gotify rootfs/usr/local/share/template-files/data/.gitkeep rootfs/usr/local/share/template-files/defaults/.gitkeep
52 lines
2.3 KiB
YAML
52 lines
2.3 KiB
YAML
# Example configuration file for the server.
|
|
|
|
server:
|
|
keepaliveperiodseconds: 0 # 0 = use Go default (15s); -1 = disable keepalive; set the interval in which keepalive packets will be sent. Only change this value if you know what you are doing.
|
|
listenaddr: '' # the address to bind on, leave empty to bind on all addresses
|
|
port: 80 # the port the HTTP server will listen on
|
|
|
|
ssl:
|
|
enabled: false # if https should be enabled
|
|
redirecttohttps: true # redirect to https if site is accessed by http
|
|
listenaddr: '' # the address to bind on, leave empty to bind on all addresses
|
|
port: 443 # the https port
|
|
certfile: # the cert file (leave empty when using letsencrypt)
|
|
certkey: # the cert key (leave empty when using letsencrypt)
|
|
letsencrypt:
|
|
enabled: false # if the certificate should be requested from letsencrypt
|
|
accepttos: false # if you accept the tos from letsencrypt
|
|
cache: /config/ssl # the directory of the cache from letsencrypt
|
|
hosts: # the hosts for which letsencrypt should request certificates
|
|
# - mydomain.tld
|
|
# - myotherdomain.tld
|
|
|
|
responseheaders: # response headers are added to every response (default: none)
|
|
# X-Custom-Header: "custom value"
|
|
|
|
cors: # Sets cors headers only when needed and provides support for multiple allowed origins. Overrides Access-Control-* Headers in response headers.
|
|
alloworigins:
|
|
- '*'
|
|
allowmethods:
|
|
- 'GET'
|
|
- 'POST'
|
|
allowheaders:
|
|
- 'Authorization'
|
|
- 'content-type'
|
|
stream:
|
|
pingperiodseconds: 45 # the interval in which websocket pings will be sent. Only change this value if you know what you are doing.
|
|
allowedorigins: # allowed origins for websocket connections (same origin is always allowed)
|
|
# - ".+.example.com"
|
|
# - "otherdomain.com"
|
|
|
|
database: # for database see (configure database section)
|
|
dialect: sqlite3
|
|
connection: /data/db/sqlite/gotify.db
|
|
|
|
defaultuser: # on database creation, gotify creates an admin user
|
|
name: admin # the username of the default user
|
|
pass: admin # the password of the default user
|
|
passstrength: 10 # the bcrypt password strength (higher = better but also slower)
|
|
uploadedimagesdir: /data/gotify/images # the directory for storing uploaded images
|
|
pluginsdir: /data/gotify/plugins # the directory where plugin resides
|
|
registration: true # enable registrations
|