-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
readme-vars.yml
69 lines (60 loc) · 4.84 KB
/
readme-vars.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
---
# project information
project_name: hedgedoc
project_url: "https://hedgedoc.org/"
project_logo: "https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/hedgedoc-banner.png"
project_blurb: |
[HedgeDoc]({{ project_url }}) gives you access to all your files wherever you are.
HedgeDoc is a real-time, multi-platform collaborative markdown note editor. This means that you can write notes with other people on your desktop, tablet or even on the phone. You can sign-in via multiple auth providers like Facebook, Twitter, GitHub and many more on the homepage.
project_lsio_github_repo_url: "https://github.com/linuxserver/docker-{{ project_name }}"
# supported architectures
available_architectures:
- { arch: "{{ arch_x86_64 }}", tag: "amd64-latest"}
- { arch: "{{ arch_arm64 }}", tag: "arm64v8-latest"}
# container parameters
common_param_env_vars_enabled: true
param_container_name: "{{ project_name }}"
param_usage_include_env: true
param_env_vars:
- { env_var: "DB_HOST", env_value: "<hostname or ip>", desc: "Host address of mariadb database" }
- { env_var: "DB_PORT", env_value: "3306", desc: "Port to access mariadb database default is 3306" }
- { env_var: "DB_USER", env_value: "hedgedoc", desc: "Database user" }
- { env_var: "DB_PASS", env_value: "<secret password>", desc: "Database password" }
- { env_var: "DB_NAME", env_value: "hedgedoc", desc: "Database name" }
- { env_var: "CMD_DOMAIN", env_value: "localhost", desc: "The address the gui will be accessed at (ie. `192.168.1.1` or `hedgedoc.domain.com`)." }
opt_param_usage_include_env: true
opt_param_env_vars:
- { env_var: "CMD_URL_ADDPORT", env_value: "false", desc: "Set to `true` if using a port other than `80` or `443`." }
- { env_var: "CMD_PROTOCOL_USESSL", env_value: "false", desc: "Set to `true` if accessing over https via reverse proxy." }
- { env_var: "CMD_PORT", env_value: "3000", desc: "If you wish to access hedgedoc at a port different than 80, 443 or 3000, you need to set this to that port (ie. `CMD_PORT=5000`) and change the port mapping accordingly (5000:5000)." }
- { env_var: "CMD_ALLOW_ORIGIN", env_value: "['localhost']", desc: "Comma-separated list of allowed hostnames"}
- { env_var: "CMD_DB_DIALECT", env_value: "", desc: "This variable allows selecting a database engine (if DB_HOST not set up). Available options are: `mariadb`, `mysql`, `postgres`, `sqlite`." }
param_usage_include_vols: true
param_volumes:
- { vol_path: "/config", vol_host_path: "/path/to/{{ project_name }}/config", desc: "Persistent config files" }
param_usage_include_ports: true
param_ports:
- { external_port: "3000", internal_port: "3000", port_desc: "Web gui port (internal port also needs to be changed if accessing at port other than 80, 443 and 3000)." }
# application setup block
app_setup_block_enabled: true
app_setup_block: |
HedgeDoc web interface can be accessed `http://${IP}:3000/`, if you want to use a custom domain or anything besides port 3000 you will need to leverage their env settings for callbacks: (specifically for CMD_DOMAIN, CMD_PORT and CMD_URL_ADDPORT)
[Full list of HedgeDoc options](https://docs.hedgedoc.org/configuration/)
For convenience we provide a working example using Mariadb as a backend in this document.
To run behind a reverse proxy we have a [preconfigured config](https://github.com/linuxserver/reverse-proxy-confs/blob/master/hedgedoc.subdomain.conf.sample) using docker networking included in our [SWAG](https://github.com/linuxserver/docker-swag) image and you can read how to use this in the [Reverse Proxy Confs repository](https://github.com/linuxserver/reverse-proxy-confs/#how-to-use-these-reverse-proxy-configs)
# changelog
changelogs:
- { date: "21.06.24:", desc: "Allow using `CMD_DB_DIALECT` to set up the `CMD_DB_URL`."}
- { date: "06.06.24:", desc: "Rebase to Alpine 3.20."}
- { date: "23.12.23:", desc: "Rebase to Alpine 3.19."}
- { date: "18.06.23:", desc: "Rebase to Alpine 3.18, deprecate armhf as per [https://www.linuxserver.io/armhf](https://www.linuxserver.io/armhf)." }
- { date: "02.11.22:", desc: "Rebase to Alpine 3.16, migrate to s6v3." }
- { date: "10.04.22:", desc: "Use python3 to build node sqlite3." }
- { date: "10.02.22:", desc: "Rebase to Alpine 3.15." }
- { date: "09.02.22:", desc: "Add optional var `CMD_PORT` that is needed for accessing at port other than 80, 443 and 3000." }
- { date: "09.12.21:", desc: "Add optional var `CMD_PROTOCOL_USESSL` that is needed for reverse proxy." }
- { date: "07.12.21:", desc: "Rebase to ubuntu focal. Update to node 16. Make sure uploads are persistent." }
- { date: "15.10.21:", desc: "Add required env var `CMD_DOMAIN`." }
- { date: "05.05.21:", desc: "Remove symlinking some folders from config to /opt/hedgedoc/public." }
- { date: "03.05.21:", desc: "Remove deprecated sequalizerc step." }
- { date: "22.12.20:", desc: "Initial release" }