~comcloudway/ansible-ccw.icu

2c50bb277a90936a29ec0cb9720eefbd063a3846 — Jakob Meier 1 year, 2 months ago 423a824
container/calckey: upgrade to firefish v1
M roles/containers/calckey/README.org => roles/containers/calckey/README.org +3 -1
@@ 1,5 1,7 @@
* /roles/containers/calckey
[[https://calckey.org][Calckey]] module.
[[https://calckey.org][Calckey]] / [[https://joinfirefish.org/][Firefish]] module.

**NOTE: This role will keep refering to everything as calckey for now, so avoid migrations**

Before using this,
you probably want to set/edit the following variables

M roles/containers/calckey/tasks/setup.yml => roles/containers/calckey/tasks/setup.yml +3 -3
@@ 68,16 68,16 @@
  docker_container:
    name: calckey_web
    restart_policy: unless-stopped
    image: docker.io/thatonecalculator/calckey
    image: codeberg.org/comcloudway/firefish-docker:latest
    ports:
      - "{{ calckey_port }}:3000"
    volumes:
      - "{{ container_dir }}\
        /{{ calckey_project_dir }}\
        /files:/calckey/files"
        /files:/firefish/files"
      - "{{ container_dir }}\
        /{{ calckey_project_dir }}\
        /.config:/calckey/.config:ro"
        /.config:/firefish/.config:ro"
    links:
      - calckey_sonic
      - calckey_db

M roles/containers/calckey/templates/calckey.conf => roles/containers/calckey/templates/calckey.conf +20 -6
@@ 1,5 1,5 @@
#━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# Calckey configuration
# Firefish configuration
#━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

# After starting your server, please don't change the URL! Doing so will break federation.


@@ 14,11 14,11 @@ url: https://{{ calckey_domain }}/
#───┘ Port and TLS settings └───────────────────────────────────

#
# Calckey requires a reverse proxy to support HTTPS connections.
# Firefish requires a reverse proxy to support HTTPS connections.
#
#                 +----- https://example.com/ ------------+
#   +------+      |+-------------+      +----------------+|
#   | User | ---> || Proxy (443) | ---> | Calckey (3000) ||
#   | User | ---> || Proxy (443) | ---> | Firefish (3000) ||
#   +------+      |+-------------+      +----------------+|
#                 +---------------------------------------+
#


@@ 26,7 26,7 @@ url: https://{{ calckey_domain }}/
#   An encrypted connection with HTTPS is highly recommended
#   because tokens may be transferred in GET requests.

# The port that your Calckey server should listen on.
# The port that your Firefish server should listen on.
port: 3000

#   ┌──────────────────────────┐


@@ 67,6 67,20 @@ redis:
  #db: 1
  #user: default

#   ┌─────────────────────────────┐
#───┘ Cache server configuration └─────────────────────────────────────

# A Redis-compatible server (DragonflyDB, Keydb, Redis) for caching
# If left blank, it will use the Redis server from above

#cacheServer:
  #host: localhost
  #port: 6379
  #family: 0  # 0=Both, 4=IPv4, 6=IPv6
  #pass: example-pass
  #prefix: example-prefix
  #db: 1

# Please configure either MeiliSearch *or* Sonic.
# If both MeiliSearch and Sonic configurations are present, MeiliSearch will take precedence.



@@ 108,7 122,7 @@ id: {{ calckey_id }}
#   ┌─────────────────────┐
#───┘ Other configuration └─────────────────────────────────────

# Maximum length of a post (default 3000, max 8192)
# Maximum length of a post (default 3000, max 100000)
#maxNoteLength: 3000

# Maximum length of an image caption (default 1500, max 8192)


@@ 187,7 201,7 @@ reservedUsernames: [

#━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# Congrats, you've reached the end of the config file needed for most deployments!
# Enjoy your Calckey server!
# Enjoy your Firefish server!
#━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━