From a1a8e65b1d0d24af21bbcea6c385f856d573eca0 Mon Sep 17 00:00:00 2001 From: dado Date: Sat, 5 Jul 2025 17:34:01 +0200 Subject: [PATCH] added linkding --- README.md | 2 +- caddy/Caddyfile | 20 +++++++++------ linkding/.env | 50 +++++++++++++++++++++++++++++++++++++ linkding/docker-compose.yml | 13 ++++++++++ 4 files changed, 77 insertions(+), 8 deletions(-) create mode 100644 linkding/.env create mode 100644 linkding/docker-compose.yml diff --git a/README.md b/README.md index d0a1974..0eeafbc 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # docker-compose -Docker Compose file \ No newline at end of file +Docker Compose file diff --git a/caddy/Caddyfile b/caddy/Caddyfile index 41f8ec7..6977a06 100644 --- a/caddy/Caddyfile +++ b/caddy/Caddyfile @@ -50,7 +50,7 @@ https://rss.novemila.org { # COLLABORA -#https://code.ilnostropianetaselvaggio.it { +#https://code.novemila.org { # encode gzip # reverse_proxy localhost:3005 { # transport http { @@ -73,9 +73,9 @@ https://mon.novemila.org { # CASTOPOD -https://podcast.novemila.org { - reverse_proxy localhost:3008 -} +#https://podcast.novemila.org { +# reverse_proxy localhost:3008 +#} # NEXTCLOUD @@ -115,9 +115,9 @@ https://social.novemila.org { # FMD -https://fmd.novemila.org { - reverse_proxy localhost:3015 -} +#https://fmd.novemila.org { +# reverse_proxy localhost:3015 +#} # GLANCE @@ -160,6 +160,12 @@ mail.novemila.org autodiscover.novemila.org autoconfig.novemila.org { reverse_proxy 127.0.0.1:3020 } +# LINKDING + +https://linkding.novemila.org { + reverse_proxy localhost:3021 +} + # MOLLY https://molly.novemila.org { diff --git a/linkding/.env b/linkding/.env new file mode 100644 index 0000000..df10845 --- /dev/null +++ b/linkding/.env @@ -0,0 +1,50 @@ +# Docker container name +LD_CONTAINER_NAME=linkding +# Port on the host system that the application should be published on +LD_HOST_PORT=127.0.0.1:3021 +# Directory on the host system that should be mounted as data dir into the Docker container +LD_HOST_DATA_DIR=./data + +# Can be used to run linkding under a context path, for example: linkding/ +# Must end with a slash `/` +LD_CONTEXT_PATH= +# Username of the initial superuser to create, leave empty to not create one +LD_SUPERUSER_NAME=dadoadmin +# Password for the initial superuser, leave empty to disable credentials authentication and rely on proxy authentication instead +LD_SUPERUSER_PASSWORD= +# Option to disable background tasks +LD_DISABLE_BACKGROUND_TASKS=False +# Option to disable URL validation for bookmarks completely +LD_DISABLE_URL_VALIDATION=False +# Enables support for authentication proxies such as Authelia +LD_ENABLE_AUTH_PROXY=False +# Name of the request header that the auth proxy passes to the application to identify the user +# See docs/Options.md for more details +LD_AUTH_PROXY_USERNAME_HEADER= +# The URL that linkding should redirect to after a logout, when using an auth proxy +# See docs/Options.md for more details +LD_AUTH_PROXY_LOGOUT_URL= +# List of trusted origins from which to accept POST requests +# See docs/Options.md for more details +LD_CSRF_TRUSTED_ORIGINS= + +# Database settings +# These are currently only required for configuring PostreSQL. +# By default, linkding uses SQLite for which you don't need to configure anything. + +# Database engine, can be sqlite (default) or postgres +LD_DB_ENGINE=sqlite +# Database name (default: linkding) +LD_DB_DATABASE=linkding +# Username to connect to the database server (default: linkding) +LD_DB_USER=linkding +# Password to connect to the database server +LD_DB_PASSWORD= +# The hostname where the database is hosted (default: localhost) +LD_DB_HOST=localhost +# Port use to connect to the database server +# Should use the default port if not set +LD_DB_PORT= +# Any additional options to pass to the database (default: {}) +LD_DB_OPTIONS= +LD_FAVICON_PROVIDER="https://t1.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url={url}&size=32" diff --git a/linkding/docker-compose.yml b/linkding/docker-compose.yml new file mode 100644 index 0000000..e36da18 --- /dev/null +++ b/linkding/docker-compose.yml @@ -0,0 +1,13 @@ +services: + linkding: + container_name: "${LD_CONTAINER_NAME:-linkding}" + image: sissbruecker/linkding:latest + + mem_limit: 512m + ports: + - "${LD_HOST_PORT:-9090}:9090" + volumes: + - "${LD_HOST_DATA_DIR:-./data}:/etc/linkding/data" + env_file: + - .env + restart: unless-stopped \ No newline at end of file