Try without item.

This commit is contained in:
Dryusdan 2023-02-06 19:53:36 +01:00
parent cf10d36826
commit 882dad61f3

View file

@ -2,48 +2,48 @@ service:
# This token is used to verify issued JWT tokens.
# Default is a random token which will be generated at each startup of vikunja.
# (This means all already issued tokens will be invalid once you restart vikunja)
JWTSecret: "{{ item.jwtsecret | default("<jwt-secret>")}}";
JWTSecret: "{{ jwtsecret | default("<jwt-secret>")}}";
# The duration of the issed JWT tokens in seconds.
# The default is 259200 seconds (3 Days).
jwtttl: "{{ item.jwtttl | default(259200) }}"
jwtttl: "{{ jwtttl | default(259200) }}"
# The duration of the "remember me" time in seconds. When the login request is made with
# the long param set, the token returned will be valid for this period.
# The default is 2592000 seconds (30 Days).
jwtttllong: "{{ item.jwtttllong | default(2592000) }}"
jwtttllong: "{{ jwtttllong | default(2592000) }}"
# The interface on which to run the webserver
interface: "{{ item.interface | default(":3456") }}"
interface: "{{ interface | default(":3456") }}"
# Path to Unix socket. If set, it will be created and used instead of tcp
unixsocket: "{{ item.unixsocket | default(omit) }}"
unixsocket: "{{ unixsocket | default(omit) }}"
# Permission bits for the Unix socket. Note that octal values must be prefixed by "0o", e.g. 0o660
unixsocketmode: "{{ item.unixmode | default(omit) }}"
unixsocketmode: "{{ unixmode | default(omit) }}"
# The URL of the frontend, used to send password reset emails.
frontendurl: "{{ item.frontendurl | default(omit) }}"
frontendurl: "{{ frontendurl | default(omit) }}"
# The base path on the file system where the binary and assets are.
# Vikunja will also look in this path for a config file, so you could provide only this variable to point to a folder
# with a config file which will then be used.
rootpath: "{{ item.frontendurl | default("<rootpath>") }}"
rootpath: "{{ frontendurl | default("<rootpath>") }}"
# Path on the file system to serve static files from. Set to the path of the frontend files to host frontend alongside the api.
staticpath: "{{ item.staticpath | default("") }}"
# The max number of items which can be returned per page
maxitemsperpage: "{{ item.maxitemsperpage | default(50) }}"
staticpath: "{{ staticpath | default("") }}"
# The max number of which can be returned per page
maxperpage: "{{ maxperpage | default(50) }}"
# Enable the caldav endpoint, see the docs for more details
enablecaldav: "{{ item.enablecaldav | default(true) }}"
enablecaldav: "{{ enablecaldav | default(true) }}"
# Set the motd message, available from the /info endpoint
motd: "{{ item.motd | default("") }}"
motd: "{{ motd | default("") }}"
# Enable sharing of lists via a link
enablelinksharing: "{{ item.enablelinksharing | default(true) }}"
enablelinksharing: "{{ enablelinksharing | default(true) }}"
# Whether to let new users registering themselves or not
enableregistration: "{{ item.enableregistration | default(true) }}"
enableregistration: "{{ enableregistration | default(true) }}"
# Whether to enable task attachments or not
enabletaskattachments: "{{ item.enabletaskattachments | default(true) }}"
enabletaskattachments: "{{ enabletaskattachments | default(true) }}"
# The time zone all timestamps are in. Please note that time zones have to use [the official tz database names](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). UTC or GMT offsets won't work.
timezone: "{{ item.timezone | default(GMT) }}"
timezone: "{{ timezone | default(GMT) }}"
# Whether task comments should be enabled or not
enabletaskcomments: "{{ item.enabletaskcomments | default(true) }}"
enabletaskcomments: "{{ enabletaskcomments | default(true) }}"
# Whether totp is enabled. In most cases you want to leave that enabled.
enabletotp: "{{ item.enabletotp | default(true) }}"
enabletotp: "{{ enabletotp | default(true) }}"
# If not empty, enables logging of crashes and unhandled errors in sentry.
sentrydsn: "{{ item.sentrydsn | default('') }}"
sentrydsn: "{{ sentrydsn | default('') }}"
# If not empty, this will enable `/test/{table}` endpoints which allow to put any content in the database.
# Used to reset the db before frontend tests. Because this is quite a dangerous feature allowing for lots of harm,
# each request made to this endpoint neefs to provide an `Authorization: <token>` header with the token from below. <br/>
@ -51,66 +51,66 @@ service:
testingtoken: ''
# If enabled, vikunja will send an email to everyone who is either assigned to a task or created it when a task reminder
# is due.
enableemailreminders: "{{ item.enableemailreminders | default(true) }}"
enableemailreminders: "{{ enableemailreminders | default(true) }}"
# If true, will allow users to request the complete deletion of their account. When using external authentication methods
# it may be required to coordinate with them in order to delete the account. This setting will not affect the cli commands
# for user deletion.
enableuserdeletion: "{{ item.enableuserdeletion | default(true) }}"
enableuserdeletion: "{{ enableuserdeletion | default(true) }}"
# The maximum size clients will be able to request for user avatars.
# If clients request a size bigger than this, it will be changed on the fly.
maxavatarsize: "{{ item.maxavatarsize | default(1024) }}"
maxavatarsize: "{{ maxavatarsize | default(1024) }}"
database:
# Database type to use. Supported types are mysql, postgres and sqlite.
type: "{{ item.db_type | default("sqlite") }}"
type: "{{ db_type | default("sqlite") }}"
# Database user which is used to connect to the database.
user: "{{ item.db_user | default("vikunja") }}"
user: "{{ db_user | default("vikunja") }}"
# Database password
password: "{{ item.db_password | default(omit) }}"
password: "{{ db_password | default(omit) }}"
# Database host
host: "{{ item.db_host | default("localhost")"
host: "{{ db_host | default("localhost")"
# Database to use
database: "{{ item.db_name | default("vikunja") }}"
database: "{{ db_name | default("vikunja") }}"
# When using sqlite, this is the path where to store the data
path: "./vikunja.db"
path: "{{ item.db_path | default("./vikunja.db") }}"
path: "{{ db_path | default("./vikunja.db") }}"
# Sets the max open connections to the database. Only used when using mysql and postgres.
maxopenconnections: {{ item.db_maxconnections | default(100) }}
maxopenconnections: {{ db_maxconnections | default(100) }}
# Sets the maximum number of idle connections to the db.
maxidleconnections: {{ item.db_maxidleconnections | default(50) }}
maxidleconnections: {{ db_maxidleconnections | default(50) }}
# The maximum lifetime of a single db connection in miliseconds.
maxconnectionlifetime: {{ item.db_maxconnectionlifetime | default(10000) }}
maxconnectionlifetime: {{ db_maxconnectionlifetime | default(10000) }}
# Secure connection mode. Only used with postgres.
# (see https://pkg.go.dev/github.com/lib/pq?tab=doc#hdr-Connection_String_Parameters)
sslmode: "{{ item.db_maxconnectionlifetime | default(disable) }}"
sslmode: "{{ db_maxconnectionlifetime | default(disable) }}"
# The path to the client cert. Only used with postgres.
sslcert: "{{ item.db_sslcert | default(omit) }}"
sslcert: "{{ db_sslcert | default(omit) }}"
# The path to the client key. Only used with postgres.
sslkey: "{{ item.db_sslkey | default(omit) }}"
sslkey: "{{ db_sslkey | default(omit) }}"
# The path to the ca cert. Only used with postgres.
sslrootcert: "{{ item.db_sslrootcert | default(omit) }}"
sslrootcert: "{{ db_sslrootcert | default(omit) }}"
# Enable SSL/TLS for mysql connections. Options: false, true, skip-verify, preferred
tls: {{ item.db_tls | default("false") }}
tls: {{ db_tls | default("false") }}
cache:
# If cache is enabled or not
enabled: {{ item.cache_enabled | default("false") }}
enabled: {{ cache_enabled | default("false") }}
# Cache type. Possible values are "keyvalue", "memory" or "redis".
# When choosing "keyvalue" this setting follows the one configured in the "keyvalue" section.
# When choosing "redis" you will need to configure the redis connection seperately.
type: {{ item.cache_type | default("keyvalue") }}
type: {{ cache_type | default("keyvalue") }}
# When using memory this defines the maximum size an element can take
maxelementsize: {{ item.cache_maxelementsize | default(1000) }}
maxelementsize: {{ cache_maxelementsize | default(1000) }}
redis:
# Whether to enable redis or not
enabled: {{ item.redis_enabled | default("false") }}
enabled: {{ redis_enabled | default("false") }}
# The host of the redis server including its port.
host: '{{ item.redis_host | default("localhost:6379") }}'
host: '{{ redis_host | default("localhost:6379") }}'
# The password used to authenicate against the redis server
password: '{{ item.redis_password | default(omit) }}'
password: '{{ redis_password | default(omit) }}'
# 0 means default database
db: {{ item.redis_db | default(0) }}
db: {{ redis_db | default(0) }}
cors:
# Whether to enable or disable cors headers.
@ -125,22 +125,22 @@ cors:
mailer:
# Whether to enable the mailer or not. If it is disabled, all users are enabled right away and password reset is not possible.
enabled: {{ item.mailer_enabled | default("false") }}
enabled: {{ mailer_enabled | default("false") }}
# SMTP Host
host: "{{ item.mailer_host | default(omit) }}"
host: "{{ mailer_host | default(omit) }}"
# SMTP Host port.
# **NOTE:** If you're unable to send mail and the only error you see in the logs is an `EOF`, try setting the port to `25`.
port: {{ item.mailer_port | default(587) }}
port: {{ mailer_port | default(587) }}
# SMTP Auth Type. Can be either `plain`, `login` or `cram-md5`.
authtype: "{{ item.mailer_authtype | default("plain") }}"
authtype: "{{ mailer_authtype | default("plain") }}"
# SMTP username
username: "{{ item.mailer_user | default(omit) }}"
username: "{{ mailer_user | default(omit) }}"
# SMTP password
password: "{{ item.mailer_password | default(omit) }}"
password: "{{ mailer_password | default(omit) }}"
# Wether to skip verification of the tls certificate on the server
skiptlsverify: {{ item.mailer_skiptlsverify | default("false") }}
skiptlsverify: {{ mailer_skiptlsverify | default("false") }}
# The default from address when sending emails
fromemail: "{{ item.mailer_from | default("mail@vikunja") }}"
fromemail: "{{ mailer_from | default("mail@vikunja") }}"
# The length of the mail queue.
queuelength: 100
# The timeout in seconds after which the current open connection to the mailserver will be closed.
@ -200,7 +200,7 @@ migration:
clientid:
# The client secret, also required for making requests to the todoist api
clientsecret:
# The url where clients are redirected after they authorized Vikunja to access their todoist items.
# The url where clients are redirected after they authorized Vikunja to access their todoist .
# This needs to match the url you entered when registering your Vikunja instance at todoist.
# This is usually the frontend url where the frontend then makes a request to /migration/todoist/migrate
# with the code obtained from the todoist api.
@ -305,11 +305,11 @@ auth:
# Prometheus metrics endpoint
metrics:
# If set to true, enables a /metrics endpoint for prometheus to collect metrics about Vikunja.
enabled: {{ item.metrics_enabled | default("false") }}
enabled: {{ metrics_enabled | default("false") }}
# If set to a non-empty value the /metrics endpoint will require this as a username via basic auth in combination with the password below.
username: "{{ item.metrics_user | default(omit) }}"
username: "{{ metrics_user | default(omit) }}"
# If set to a non-empty value the /metrics endpoint will require this as a password via basic auth in combination with the username below.
password: "{{ item.metrics_password | default(omit) }}"
password: "{{ metrics_password | default(omit) }}"
# Provide default settings for new users. When a new user is created, these settings will automatically be set for the user. If you change them in the config file afterwards they will not be changed back for existing users.
defaultsettings: