fork/chhoto-url
git clone https://git.julia.blue/fork/chhoto-url
abe93c7
unicode
1# SPDX-FileCopyrightText: 2023-2026 Sayantan Santra <sayantan.santra689@gmail.com> 2# SPDX-License-Identifier: MIT 3# 4# chhoto-url.container 5# 6# To be used with rootless quadlets. Put inside your $XDG_CONFIG_HOME/containers/systemd/ 7# Take a look at README for the explanation of the configs. 8# The commented out configs are optional. 9[Unit] 10Description=Caddy 11#AssertPathIsDirectory=%h/podman/chhoto-url/data 12 13[Container] 14ContainerName=chhoto-url 15Image=docker.io/sintan1729/chhoto-url:alpine 16#Image=docker.io/sintan1729/chhoto-url:alpine # for extra convenience 17#The images can also be pulled from ghcr.io 18PodmanArgs=--tty 19PublishPort=4567:4567 20DropCapability=ALL 21#Memory=50m # Note: This might not work with older versions of podman quadlets 22 23# Environment variables 24Environment=CHHOTO_DB_URL=/data/urls.sqlite 25Environment=CHHOTO_SQLITE_USE_WAL_MODE=True 26#Environment=CHHOTO_SQLITE_ENSURE_ACID=True 27#Environment=CHHOTO_DISABLE_BACKUPS=False 28#Environment=CHHOTO_CUSTOM_SITE_TITLE="Custom Title" 29#Environment=CHHOTO_SITE_URL=https://www.example.com 30#Environment=CHHOTO_HASH_ALGORITHM=Argon2 31Environment=CHHOTO_PASSWORD=TopSecretPass 32Environment=CHHOTO_LISTEN_PORT=4567 33#Environment=CHHOTO_LISTEN_ADDRESS=4567 34#Environment=CHHOTO_API_KEY=SECURE_API_KEY 35Environment=CHHOTO_REDIRECT_METHOD=TEMPORARY 36Environment=CHHOTO_SLUG_STYLE=Pair 37#Environment=CHHOTO_SLUG_LENGTH=8 38#Environment=CHHOTO_TRY_LONGER_SLUG=False 39#Environment=CHHOTO_ALLOW_CAPITAL_LETTERS=False 40#Environment=CHHOTO_PUBLIC_MODE=Disable 41#Environment=CHHOTO_PUBLIC_MODE_EXPIRY_DELAY=3600 42#Environment=CHHOTO_DISABLE_FRONTEND=False 43#Environment=CHHOTO_CUSTOM_LANDING_DIRECTORY=/custom/dir/location 44#Environment=CHHOTO_CACHE_CONTROL_HEADER=no-cache,private 45#Environment=CHHOTO_FRONTEND_PAGE_SIZE=10 46#Environment=TZ=America/Chicago 47 48# Volume 49Volume=data:/data 50 51# Health check 52# Enable this if using the scratch images. 53HealthCmd=CMD-SHELL wget -qO- http://127.0.0.1:1729/healthz || exit 1 54HealthInterval=60s 55HealthRetries=3 56HealthStartPeriod=10s 57HealthTimeout=10s 58HealthOnFailure=kill 59 60[Service] 61Restart=on-failure