Guest User

config.yml

a guest
Jan 23rd, 2022
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.24 KB | None | 0 0
  1. service:
  2. # This token is used to verify issued JWT tokens.
  3. # Default is a random token which will be generated at each startup of vikunja.
  4. # (This means all already issued tokens will be invalid once you restart vikunja)
  5. JWTSecret: "HoBbwspiKBrQFY0miW4L5kCoON3E64pG"
  6. # The duration of the issed JWT tokens in seconds.
  7. # The default is 259200 seconds (3 Days).
  8. jwtttl: 259200
  9. # The interface on which to run the webserver
  10. interface: ":3456"
  11. # Path to Unix socket. If set, it will be created and used instead of tcp
  12. unixsocket:
  13. # Permission bits for the Unix socket. Note that octal values must be prefixed by "0o", e.g. 0o660
  14. unixsocketmode:
  15. # The URL of the frontend, used to send password reset emails.
  16. frontendurl: ""
  17. # The base path on the file system where the binary and assets are.
  18. # Vikunja will also look in this path for a config file, so you could provide only this variable to point to a folder
  19. # with a config file which will then be used.
  20. rootpath: /opt/vikunja/
  21. # The max number of items which can be returned per page
  22. maxitemsperpage: 50
  23. # Enable the caldav endpoint, see the docs for more details
  24. enablecaldav: true
  25. # Set the motd message, available from the /info endpoint
  26. motd: ""
  27. # Enable sharing of lists via a link
  28. enablelinksharing: true
  29. # Whether to let new users registering themselves or not
  30. enableregistration: true
  31. # Whether to enable task attachments or not
  32. enabletaskattachments: true
  33. # 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.
  34. timezone: GMT
  35. # Whether task comments should be enabled or not
  36. enabletaskcomments: true
  37. # Whether totp is enabled. In most cases you want to leave that enabled.
  38. enabletotp: true
  39. # If not empty, enables logging of crashes and unhandled errors in sentry.
  40. sentrydsn: ''
  41. # If not empty, this will enable `/test/{table}` endpoints which allow to put any content in the database.
  42. # Used to reset the db before frontend tests. Because this is quite a dangerous feature allowing for lots of harm,
  43. # each request made to this endpoint neefs to provide an `Authorization: <token>` header with the token from below. <br/>
  44. # **You should never use this unless you know exactly what you're doing**
  45. testingtoken: ''
  46. # If enabled, vikunja will send an email to everyone who is either assigned to a task or created it when a task reminder
  47. # is due.
  48. enableemailreminders: true
  49. # If true, will allow users to request the complete deletion of their account. When using external authentication methods
  50. # it may be required to coordinate with them in order to delete the account. This setting will not affect the cli commands
  51. # for user deletion.
  52. enableuserdeletion: true
  53.  
  54. database:
  55. # Database type to use. Supported types are mysql, postgres and sqlite.
  56. type: "sqlite"
  57. # Database user which is used to connect to the database.
  58. user: "vikunja"
  59. # Databse password
  60. password: ""
  61. # Databse host
  62. host: "localhost"
  63. # Databse to use
  64. database: "vikunja"
  65. # When using sqlite, this is the path where to store the data
  66. path: "./vikunja.db"
  67. # Sets the max open connections to the database. Only used when using mysql and postgres.
  68. maxopenconnections: 100
  69. # Sets the maximum number of idle connections to the db.
  70. maxidleconnections: 50
  71. # The maximum lifetime of a single db connection in miliseconds.
  72. maxconnectionlifetime: 10000
  73. # Secure connection mode. Only used with postgres.
  74. # (see https://pkg.go.dev/github.com/lib/pq?tab=doc#hdr-Connection_String_Parameters)
  75. sslmode: disable
  76. # Enable SSL/TLS for mysql connections. Options: false, true, skip-verify, preferred
  77. tls: false
  78.  
  79. cache:
  80. # If cache is enabled or not
  81. enabled: false
  82. # Cache type. Possible values are "keyvalue", "memory" or "redis".
  83. # When choosing "keyvalue" this setting follows the one configured in the "keyvalue" section.
  84. # When choosing "redis" you will need to configure the redis connection seperately.
  85. type: keyvalue
  86. # When using memory this defines the maximum size an element can take
  87. maxelementsize: 1000
  88.  
  89. redis:
  90. # Whether to enable redis or not
  91. enabled: false
  92. # The host of the redis server including its port.
  93. host: 'localhost:6379'
  94. # The password used to authenicate against the redis server
  95. password: ''
  96. # 0 means default database
  97. db: 0
  98.  
  99. cors:
  100. # Whether to enable or disable cors headers.
  101. # Note: If you want to put the frontend and the api on seperate domains or ports, you will need to enable this.
  102. # Otherwise the frontend won't be able to make requests to the api through the browser.
  103. enable: true
  104. # A list of origins which may access the api. These need to include the protocol (`http://` or `https://`) and port, if any.
  105. origins:
  106. - "*"
  107. # How long (in seconds) the results of a preflight request can be cached.
  108. maxage: 0
  109.  
  110. mailer:
  111. # Whether to enable the mailer or not. If it is disabled, all users are enabled right away and password reset is not possible.
  112. enabled: true
  113. # SMTP Host
  114. host: "smtp.mail.ru"
  115. # SMTP Host port
  116. port: 587
  117. # SMTP username
  118. username: "[email protected]"
  119. # SMTP password
  120. password: ""
  121. # Wether to skip verification of the tls certificate on the server
  122. skiptlsverify: false
  123. # The default from address when sending emails
  124. fromemail: "[email protected]"
  125. # The length of the mail queue.
  126. queuelength: 100
  127. # The timeout in seconds after which the current open connection to the mailserver will be closed.
  128. queuetimeout: 30
  129. # By default, vikunja will try to connect with starttls, use this option to force it to use ssl.
  130. forcessl: false
  131.  
  132. log:
  133. # A folder where all the logfiles should go.
  134. path: /opt/vikunja/logs
  135. # Whether to show any logging at all or none
  136. enabled: true
  137. # Where the normal log should go. Possible values are stdout, stderr, file or off to disable standard logging.
  138. standard: "stdout"
  139. # Change the log level. Possible values (case-insensitive) are CRITICAL, ERROR, WARNING, NOTICE, INFO, DEBUG.
  140. level: "INFO"
  141. # Whether or not to log database queries. Useful for debugging. Possible values are stdout, stderr, file or off to disable database logging.
  142. database: "off"
  143. # The log level for database log messages. Possible values (case-insensitive) are CRITICAL, ERROR, WARNING, NOTICE, INFO, DEBUG.
  144. databaselevel: "WARNING"
  145. # Whether to log http requests or not. Possible values are stdout, stderr, file or off to disable http logging.
  146. http: "stdout"
  147. # Echo has its own logging which usually is unnessecary, which is why it is disabled by default. Possible values are stdout, stderr, file or off to disable standard logging.
  148. echo: "off"
  149. # Whether or not to log events. Useful for debugging. Possible values are stdout, stderr, file or off to disable events logging.
  150. events: "stdout"
  151. # The log level for event log messages. Possible values (case-insensitive) are ERROR, INFO, DEBUG.
  152. eventslevel: "info"
  153.  
  154. ratelimit:
  155. # whether or not to enable the rate limit
  156. enabled: false
  157. # The kind on which rates are based. Can be either "user" for a rate limit per user or "ip" for an ip-based rate limit.
  158. kind: user
  159. # The time period in seconds for the limit
  160. period: 60
  161. # The max number of requests a user is allowed to do in the configured time period
  162. limit: 100
  163. # The store where the limit counter for each user is stored.
  164. # Possible values are "keyvalue", "memory" or "redis".
  165. # When choosing "keyvalue" this setting follows the one configured in the "keyvalue" section.
  166. store: keyvalue
  167.  
  168. files:
  169. # The path where files are stored
  170. basepath: ./files # relative to the binary
  171. # The maximum size of a file, as a human-readable string.
  172. # Warning: The max size is limited 2^64-1 bytes due to the underlying datatype
  173. maxsize: 20MB
  174.  
  175. migration:
  176. # These are the settings for the wunderlist migrator
  177. wunderlist:
  178. # Wheter to enable the wunderlist migrator or not
  179. enable: false
  180. # The client id, required for making requests to the wunderlist api
  181. # You need to register your vikunja instance at https://developer.wunderlist.com/apps/new to get this
  182. clientid:
  183. # The client secret, also required for making requests to the wunderlist api
  184. clientsecret:
  185. # The url where clients are redirected after they authorized Vikunja to access their wunderlist stuff.
  186. # This needs to match the url you entered when registering your Vikunja instance at wunderlist.
  187. # This is usually the frontend url where the frontend then makes a request to /migration/wunderlist/migrate
  188. # with the code obtained from the wunderlist api.
  189. # Note that the vikunja frontend expects this to be /migrate/wunderlist
  190. redirecturl:
  191. todoist:
  192. # Wheter to enable the todoist migrator or not
  193. enable: false
  194. # The client id, required for making requests to the todoist api
  195. # You need to register your vikunja instance at https://developer.todoist.com/appconsole.html to get this
  196. clientid:
  197. # The client secret, also required for making requests to the todoist api
  198. clientsecret:
  199. # The url where clients are redirected after they authorized Vikunja to access their todoist items.
  200. # This needs to match the url you entered when registering your Vikunja instance at todoist.
  201. # This is usually the frontend url where the frontend then makes a request to /migration/todoist/migrate
  202. # with the code obtained from the todoist api.
  203. # Note that the vikunja frontend expects this to be /migrate/todoist
  204. redirecturl: <frontend url>/migrate/todoist
  205. trello:
  206. # Wheter to enable the trello migrator or not
  207. enable: true
  208. # The client id, required for making requests to the trello api
  209. # You need to register your vikunja instance at https://trello.com/app-key (log in before you visit that link) to get this
  210. key: 111111111111111111111
  211. # The url where clients are redirected after they authorized Vikunja to access their trello cards.
  212. # This needs to match the url you entered when registering your Vikunja instance at trello.
  213. # This is usually the frontend url where the frontend then makes a request to /migration/trello/migrate
  214. # with the code obtained from the trello api.
  215. # Note that the vikunja frontend expects this to end on /migrate/trello.
  216. redirecturl: <frontend url>/migrate/trello
  217. microsofttodo:
  218. # Wheter to enable the microsoft todo migrator or not
  219. enable: false
  220. # The client id, required for making requests to the microsoft graph api
  221. # See https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app#register-an-application
  222. # for information about how to register your vikuinja instance.
  223. clientid:
  224. # The client secret, also required for making requests to the microsoft graph api
  225. clientsecret:
  226. # The url where clients are redirected after they authorized Vikunja to access their microsoft todo tasks.
  227. # This needs to match the url you entered when registering your Vikunja instance at microsoft.
  228. # This is usually the frontend url where the frontend then makes a request to /migration/microsoft-todo/migrate
  229. # with the code obtained from the microsoft graph api.
  230. # Note that the vikunja frontend expects this to be /migrate/microsoft-todo
  231. redirecturl: <frontend url>/migrate/microsoft-todo
  232.  
  233. avatar:
  234. # When using gravatar, this is the duration in seconds until a cached gravatar user avatar expires
  235. gravatarexpiration: 3600
  236.  
  237. backgrounds:
  238. # Whether to enable backgrounds for lists at all.
  239. enabled: true
  240. providers:
  241. upload:
  242. # Whethere to enable uploaded list backgrounds
  243. enabled: true
  244. unsplash:
  245. # Whether to enable setting backgrounds from unsplash as list backgrounds
  246. enabled: false
  247. # You need to create an application for your installation at https://unsplash.com/oauth/applications/new
  248. # and set the access token below.
  249. accesstoken:
  250. # The unsplash application id is only used for pingback and required as per their api guidelines.
  251. # You can find the Application ID in the dashboard for your API application. It should be a numeric ID.
  252. # It will only show in the UI if your application has been approved for Enterprise usage, therefore if
  253. # you’re in Demo mode, you can also find the ID in the URL at the end: https://unsplash.com/oauth/applications/:application_id
  254. applicationid:
  255.  
  256. # Legal urls
  257. # Will be shown in the frontend if configured here
  258. legal:
  259. imprinturl:
  260. privacyurl:
  261.  
  262. # Key Value Storage settings
  263. # The Key Value Storage is used for different kinds of things like metrics and a few cache systems.
  264. keyvalue:
  265. # The type of the storage backend. Can be either "memory" or "redis". If "redis" is chosen it needs to be configured seperately.
  266. type: "memory"
  267.  
  268. auth:
  269. # Local authentication will let users log in and register (if enabled) through the db.
  270. # This is the default auth mechanism and does not require any additional configuration.
  271. local:
  272. # Enable or disable local authentication
  273. enabled: true
  274. # OpenID configuration will allow users to authenticate through a third-party OpenID Connect compatible provider.<br/>
  275. # The provider needs to support the `openid`, `profile` and `email` scopes.<br/>
  276. # **Note:** Some openid providers (like gitlab) only make the email of the user available through openid claims if they have set it to be publicly visible.
  277. # If the email is not public in those cases, authenticating will fail.
  278. # **Note 2:** The frontend expects to be redirected after authentication by the third party
  279. # to <frontend-url>/auth/openid/<auth key>. Please make sure to configure the redirect url with your third party
  280. # auth service accordingy if you're using the default vikunja frontend.
  281. # Take a look at the [default config file](https://kolaente.dev/vikunja/api/src/branch/main/config.yml.sample) for more information about how to configure openid authentication.
  282. openid:
  283. # Enable or disable OpenID Connect authentication
  284. enabled: false
  285. # The url to redirect clients to. Defaults to the configured frontend url. If you're using Vikunja with the official
  286. # frontend, you don't need to change this value.
  287. redirecturl: <frontend url>
  288. # A list of enabled providers
  289. providers:
  290. # The name of the provider as it will appear in the frontend.
  291. - name:
  292. # The auth url to send users to if they want to authenticate using OpenID Connect.
  293. authurl:
  294. # The client ID used to authenticate Vikunja at the OpenID Connect provider.
  295. clientid:
  296. # The client secret used to authenticate Vikunja at the OpenID Connect provider.
  297. clientsecret:
  298.  
  299. # Prometheus metrics endpoint
  300. metrics:
  301. # If set to true, enables a /metrics endpoint for prometheus to collect metrics about Vikunja.
  302. enabled: false
  303. # 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.
  304. username:
  305. # 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.
  306. password:
  307.  
  308.  
  309.  
Advertisement
Add Comment
Please, Sign In to add comment