Final adjustments

Changed files
+5
config
roles
knot-docker
defaults
tasks
templates
+1
config/roles/knot-docker/defaults/main.yaml
···
knot_server_hostname: "example.com"
knot_server_owner: "did:plc:example"
knot_server_port: "443"
+
knot_appview_endpoint: "https://tangled.sh"
knot_deploy_dir: "/opt/knot"
knot_enable_caddy: false # Set to true to enable Caddy reverse proxy
knot_uid: "1000"
+2
config/roles/knot-docker/tasks/main.yaml
···
path: "{{ knot_deploy_dir }}/{{ item }}"
state: directory
mode: '0755'
+
owner: "{{ knot_uid }}"
+
group: "{{ knot_gid }}"
loop:
- keys
- repositories
+1
config/roles/knot-docker/templates/docker-compose.yml.j2
···
environment:
KNOT_SERVER_HOSTNAME: ${KNOT_SERVER_HOSTNAME}
KNOT_SERVER_OWNER: ${KNOT_SERVER_OWNER}
+
APPVIEW_ENDPOINT: ${APPVIEW_ENDPOINT}
KNOT_SERVER_DB_PATH: /app/knotserver.db
KNOT_REPO_SCAN_PATH: /home/git/repositories
KNOT_SERVER_INTERNAL_LISTEN_ADDR: localhost:5444
+1
config/roles/knot-docker/templates/env.j2
···
KNOT_SERVER_HOSTNAME={{ knot_server_hostname }}
KNOT_SERVER_OWNER={{ knot_server_owner }}
KNOT_SERVER_PORT={{ knot_server_port }}
+
APPVIEW_ENDPOINT={{ knot_appview_endpoint }}