Advertisement
Guest User

Untitled

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