Vikunja Unstable startup issue due to IPV6 #123

Closed
opened 2025-11-01 20:47:46 -05:00 by GiteaMirror · 14 comments
Owner

Originally created by @RoboMagus on GitHub (Feb 3, 2023).

Description

By default I'm running Vikunja Unstable releases to keep up with the latest development. Since the addition of IPv6 support I've rolled back to the latest tags, as the unstable won't work anymore.

Vikunja Frontend Version

Unstable

Vikunja API Version

Unstable

Browser and version

No response

Can you reproduce the bug on the Vikunja demo site?

No

Screenshots

Log outputs:

/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: ipv6 not available
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
20-envsubst-on-templates.sh: Running envsubst on /etc/nginx/templates/default.conf.template to /etc/nginx/conf.d/default.conf
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/50-injector.sh
info: API URL is http://localhost:3456/api/v1
info: Sentry enabled: false
info: started at 2023-02-03T08:25:22+00:00
/docker-entrypoint.sh: Configuration complete; ready for start up
2023/02/03 08:25:22 [emerg] 1#1: socket() [::]:80 failed (97: Address family not supported by protocol)
nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: ipv6 not available
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
20-envsubst-on-templates.sh: Running envsubst on /etc/nginx/templates/default.conf.template to /etc/nginx/conf.d/default.conf
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/50-injector.sh
info: API URL is http://localhost:3456/api/v1
info: Sentry enabled: false
info: started at 2023-02-03T08:25:25+00:00
/docker-entrypoint.sh: Configuration complete; ready for start up
2023/02/03 08:25:25 [emerg] 1#1: socket() [::]:80 failed (97: Address family not supported by protocol)
nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
Originally created by @RoboMagus on GitHub (Feb 3, 2023). ### Description By default I'm running Vikunja Unstable releases to keep up with the latest development. Since the addition of IPv6 support I've rolled back to the `latest` tags, as the `unstable` won't work anymore. ### Vikunja Frontend Version Unstable ### Vikunja API Version Unstable ### Browser and version _No response_ ### Can you reproduce the bug on the Vikunja demo site? No ### Screenshots Log outputs: ``` /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/ /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh 10-listen-on-ipv6-by-default.sh: info: ipv6 not available /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh 20-envsubst-on-templates.sh: Running envsubst on /etc/nginx/templates/default.conf.template to /etc/nginx/conf.d/default.conf /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh /docker-entrypoint.sh: Launching /docker-entrypoint.d/50-injector.sh info: API URL is http://localhost:3456/api/v1 info: Sentry enabled: false info: started at 2023-02-03T08:25:22+00:00 /docker-entrypoint.sh: Configuration complete; ready for start up 2023/02/03 08:25:22 [emerg] 1#1: socket() [::]:80 failed (97: Address family not supported by protocol) nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol) /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/ /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh 10-listen-on-ipv6-by-default.sh: info: ipv6 not available /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh 20-envsubst-on-templates.sh: Running envsubst on /etc/nginx/templates/default.conf.template to /etc/nginx/conf.d/default.conf /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh /docker-entrypoint.sh: Launching /docker-entrypoint.d/50-injector.sh info: API URL is http://localhost:3456/api/v1 info: Sentry enabled: false info: started at 2023-02-03T08:25:25+00:00 /docker-entrypoint.sh: Configuration complete; ready for start up 2023/02/03 08:25:25 [emerg] 1#1: socket() [::]:80 failed (97: Address family not supported by protocol) nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol) ```
Author
Owner

@kolaente commented on GitHub (Feb 3, 2023):

Can you share your config?

@kolaente commented on GitHub (Feb 3, 2023): Can you share your config?
Author
Owner

@RoboMagus commented on GitHub (Feb 3, 2023):

Here's my config (I keep it the same for latest and unstable) with some privacy sensitive keys <REDACTED>:

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: <REDACTED>
  # The duration of the issed JWT tokens in seconds.
  # The default is 259200 seconds (3 Days).
  jwtttl: 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: 2592000
  # The interface on which to run the webserver
  # interface: ":3456"
  # Path to Unix socket. If set, it will be created and used instead of tcp
  unixsocket:
  # Permission bits for the Unix socket. Note that octal values must be prefixed by "0o", e.g. 0o660
  unixsocketmode:
  # The URL of the frontend, used to send password reset emails.
  frontendurl: ""
  # 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: <rootpath>
  # The max number of items which can be returned per page
  maxitemsperpage: 100
  # Enable the caldav endpoint, see the docs for more details
  enablecaldav: true
  # Set the motd message, available from the /info endpoint
  motd: ""
  # Enable sharing of lists via a link
  enablelinksharing: true
  # Whether to let new users registering themselves or not
  enableregistration: false
  # Whether to enable task attachments or not
  enabletaskattachments: 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: Europe/Amsterdam
  # Whether task comments should be enabled or not
  enabletaskcomments: true
  # Whether totp is enabled. In most cases you want to leave that enabled.
  enabletotp: true
  # If not empty, enables logging of crashes and unhandled errors in sentry.
  sentrydsn: ''
  # 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/>
  # **You should never use this unless you know exactly what you're doing**
  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: 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: true

cache:
  # If cache is enabled or not
  enabled: 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: keyvalue
  # When using memory this defines the maximum size an element can take
  maxelementsize: 1000

redis:
  # Whether to enable redis or not
  enabled: false
  # The host of the redis server including its port.
  host: 'localhost:6379'
  # The password used to authenicate against the redis server
  password: ''
  # 0 means default database
  db: 0

cors:
  # Whether to enable or disable cors headers.
  # Note: If you want to put the frontend and the api on seperate domains or ports, you will need to enable this.
  #       Otherwise the frontend won't be able to make requests to the api through the browser.
  enable: true
  # A list of origins which may access the api. These need to include the protocol (`http://` or `https://`) and port, if any.
  origins:
    - "*"
  # How long (in seconds) the results of a preflight request can be cached.
  maxage: 0

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: false
  # SMTP Host
  host: ""
  # SMTP Host port
  port: 587
  # SMTP username
  username: "user"
  # SMTP password
  password: ""
  # Wether to skip verification of the tls certificate on the server
  skiptlsverify: false
  # The default from address when sending emails
  fromemail: "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.
  queuetimeout: 30
  # By default, vikunja will try to connect with starttls, use this option to force it to use ssl.
  forcessl: false

log:
  # A folder where all the logfiles should go.
  path: <rootpath>logs
  # Whether to show any logging at all or none
  enabled: true
  # Where the normal log should go. Possible values are stdout, stderr, file or off to disable standard logging.
  standard: "stdout"
  # Change the log level. Possible values (case-insensitive) are CRITICAL, ERROR, WARNING, NOTICE, INFO, DEBUG.
  level: "INFO"
  # Whether or not to log database queries. Useful for debugging. Possible values are stdout, stderr, file or off to disable database logging.
  database: "off"
  # The log level for database log messages. Possible values (case-insensitive) are CRITICAL, ERROR, WARNING, NOTICE, INFO, DEBUG.
  databaselevel: "WARNING"
  # Whether to log http requests or not. Possible values are stdout, stderr, file or off to disable http logging.
  http: "stdout"
  # 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.
  echo: "off"
  # Whether or not to log events. Useful for debugging. Possible values are stdout, stderr, file or off to disable events logging.
  events: "stdout"
  # The log level for event log messages. Possible values (case-insensitive) are ERROR, INFO, DEBUG.
  eventslevel: "info"

ratelimit:
  # whether or not to enable the rate limit
  enabled: false
  # 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.
  kind: user
  # The time period in seconds for the limit
  period: 60
  # The max number of requests a user is allowed to do in the configured time period
  limit: 250
  # The store where the limit counter for each user is stored.
  # Possible values are "keyvalue", "memory" or "redis".
  # When choosing "keyvalue" this setting follows the one configured in the "keyvalue" section.
#  store: keyvalue

files:
  # The path where files are stored
  basepath: ./files # relative to the binary
  # The maximum size of a file, as a human-readable string.
  # Warning: The max size is limited 2^64-1 bytes due to the underlying datatype
  maxsize: 20MB

migration:
  # These are the settings for the wunderlist migrator
  wunderlist:
    # Wheter to enable the wunderlist migrator or not
    enable: false
    # The client id, required for making requests to the wunderlist api
    # You need to register your vikunja instance at https://developer.wunderlist.com/apps/new to get this
    clientid:
    # The client secret, also required for making requests to the wunderlist api
    clientsecret:
    # The url where clients are redirected after they authorized Vikunja to access their wunderlist stuff.
    # This needs to match the url you entered when registering your Vikunja instance at wunderlist.
    # This is usually the frontend url where the frontend then makes a request to /migration/wunderlist/migrate
    # with the code obtained from the wunderlist api.
    # Note that the vikunja frontend expects this to be /migrate/wunderlist
    redirecturl:
  todoist:
    # Wheter to enable the todoist migrator or not
    enable: false
    # The client id, required for making requests to the todoist api
    # You need to register your vikunja instance at https://developer.todoist.com/appconsole.html to get this
    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.
    # 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.
    # Note that the vikunja frontend expects this to be /migrate/todoist
    redirecturl: <frontend url>/migrate/todoist
  trello:
    # Wheter to enable the trello migrator or not
    enable: false
    # The client id, required for making requests to the trello api
    # You need to register your vikunja instance at https://trello.com/app-key (log in before you visit that link) to get this
    key:
    # The url where clients are redirected after they authorized Vikunja to access their trello cards.
    # This needs to match the url you entered when registering your Vikunja instance at trello.
    # This is usually the frontend url where the frontend then makes a request to /migration/trello/migrate
    # with the code obtained from the trello api.
    # Note that the vikunja frontend expects this to end on /migrate/trello.
    redirecturl: <frontend url>/migrate/trello
  microsofttodo:
    # Wheter to enable the microsoft todo migrator or not
    enable: false
    # The client id, required for making requests to the microsoft graph api
    # See https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app#register-an-application
    # for information about how to register your vikuinja instance.
    clientid:
    # The client secret, also required for making requests to the microsoft graph api
    clientsecret:
    # The url where clients are redirected after they authorized Vikunja to access their microsoft todo tasks.
    # This needs to match the url you entered when registering your Vikunja instance at microsoft.
    # This is usually the frontend url where the frontend then makes a request to /migration/microsoft-todo/migrate
    # with the code obtained from the microsoft graph api.
    # Note that the vikunja frontend expects this to be /migrate/microsoft-todo
    redirecturl: <frontend url>/migrate/microsoft-todo

avatar:
  # When using gravatar, this is the duration in seconds until a cached gravatar user avatar expires
  gravatarexpiration: 3600

backgrounds:
  # Whether to enable backgrounds for lists at all.
  enabled: true
  providers:
    upload:
      # Whethere to enable uploaded list backgrounds
      enabled: true
    unsplash:
      # Whether to enable setting backgrounds from unsplash as list backgrounds
      enabled: false
      # You need to create an application for your installation at https://unsplash.com/oauth/applications/new
      # and set the access token below.
      accesstoken:
      # The unsplash application id is only used for pingback and required as per their api guidelines.
      # You can find the Application ID in the dashboard for your API application. It should be a numeric ID.
      # It will only show in the UI if your application has been approved for Enterprise usage, therefore if
      # you’re in Demo mode, you can also find the ID in the URL at the end: https://unsplash.com/oauth/applications/:application_id
      applicationid:

# Legal urls
# Will be shown in the frontend if configured here
legal:
  imprinturl:
  privacyurl:

# Key Value Storage settings
# The Key Value Storage is used for different kinds of things like metrics and a few cache systems.
keyvalue:
  # The type of the storage backend. Can be either "memory" or "redis". If "redis" is chosen it needs to be configured seperately.
  type: "memory"

auth:
  # Local authentication will let users log in and register (if enabled) through the db.
  # This is the default auth mechanism and does not require any additional configuration.
  local:
    # Enable or disable local authentication
    enabled: false
  # OpenID configuration will allow users to authenticate through a third-party OpenID Connect compatible provider.<br/>
  # The provider needs to support the `openid`, `profile` and `email` scopes.<br/>
  # **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.
  # If the email is not public in those cases, authenticating will fail.
  # **Note 2:** The frontend expects to be redirected after authentication by the third party
  # to <frontend-url>/auth/openid/<auth key>. Please make sure to configure the redirect url with your third party
  # auth service accordingy if you're using the default vikunja frontend.
  # 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.
  openid:
    # Enable or disable OpenID Connect authentication
    enabled: true
    # The url to redirect clients to. Defaults to the configured frontend url. If you're using Vikunja with the official
    # frontend, you don't need to change this value.
    redirecturl: <REDACTED>
    # A list of enabled providers
    providers:
      # The name of the provider as it will appear in the frontend.
      - name: vikunja
        # The auth url to send users to if they want to authenticate using OpenID Connect.
        authurl: <REDACTED>
        # The client ID used to authenticate Vikunja at the OpenID Connect provider.
        clientid: <REDACTED>
        # The client secret used to authenticate Vikunja at the OpenID Connect provider.
        clientsecret: <REDACTED>

# Prometheus metrics endpoint
metrics:
  # If set to true, enables a /metrics endpoint for prometheus to collect metrics about Vikunja.
  enabled: 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:
  # 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:

@RoboMagus commented on GitHub (Feb 3, 2023): Here's my config (I keep it the same for `latest` and `unstable`) with some privacy sensitive keys `<REDACTED>`: ```yaml 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: <REDACTED> # The duration of the issed JWT tokens in seconds. # The default is 259200 seconds (3 Days). jwtttl: 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: 2592000 # The interface on which to run the webserver # interface: ":3456" # Path to Unix socket. If set, it will be created and used instead of tcp unixsocket: # Permission bits for the Unix socket. Note that octal values must be prefixed by "0o", e.g. 0o660 unixsocketmode: # The URL of the frontend, used to send password reset emails. frontendurl: "" # 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: <rootpath> # The max number of items which can be returned per page maxitemsperpage: 100 # Enable the caldav endpoint, see the docs for more details enablecaldav: true # Set the motd message, available from the /info endpoint motd: "" # Enable sharing of lists via a link enablelinksharing: true # Whether to let new users registering themselves or not enableregistration: false # Whether to enable task attachments or not enabletaskattachments: 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: Europe/Amsterdam # Whether task comments should be enabled or not enabletaskcomments: true # Whether totp is enabled. In most cases you want to leave that enabled. enabletotp: true # If not empty, enables logging of crashes and unhandled errors in sentry. sentrydsn: '' # 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/> # **You should never use this unless you know exactly what you're doing** 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: 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: true cache: # If cache is enabled or not enabled: 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: keyvalue # When using memory this defines the maximum size an element can take maxelementsize: 1000 redis: # Whether to enable redis or not enabled: false # The host of the redis server including its port. host: 'localhost:6379' # The password used to authenicate against the redis server password: '' # 0 means default database db: 0 cors: # Whether to enable or disable cors headers. # Note: If you want to put the frontend and the api on seperate domains or ports, you will need to enable this. # Otherwise the frontend won't be able to make requests to the api through the browser. enable: true # A list of origins which may access the api. These need to include the protocol (`http://` or `https://`) and port, if any. origins: - "*" # How long (in seconds) the results of a preflight request can be cached. maxage: 0 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: false # SMTP Host host: "" # SMTP Host port port: 587 # SMTP username username: "user" # SMTP password password: "" # Wether to skip verification of the tls certificate on the server skiptlsverify: false # The default from address when sending emails fromemail: "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. queuetimeout: 30 # By default, vikunja will try to connect with starttls, use this option to force it to use ssl. forcessl: false log: # A folder where all the logfiles should go. path: <rootpath>logs # Whether to show any logging at all or none enabled: true # Where the normal log should go. Possible values are stdout, stderr, file or off to disable standard logging. standard: "stdout" # Change the log level. Possible values (case-insensitive) are CRITICAL, ERROR, WARNING, NOTICE, INFO, DEBUG. level: "INFO" # Whether or not to log database queries. Useful for debugging. Possible values are stdout, stderr, file or off to disable database logging. database: "off" # The log level for database log messages. Possible values (case-insensitive) are CRITICAL, ERROR, WARNING, NOTICE, INFO, DEBUG. databaselevel: "WARNING" # Whether to log http requests or not. Possible values are stdout, stderr, file or off to disable http logging. http: "stdout" # 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. echo: "off" # Whether or not to log events. Useful for debugging. Possible values are stdout, stderr, file or off to disable events logging. events: "stdout" # The log level for event log messages. Possible values (case-insensitive) are ERROR, INFO, DEBUG. eventslevel: "info" ratelimit: # whether or not to enable the rate limit enabled: false # 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. kind: user # The time period in seconds for the limit period: 60 # The max number of requests a user is allowed to do in the configured time period limit: 250 # The store where the limit counter for each user is stored. # Possible values are "keyvalue", "memory" or "redis". # When choosing "keyvalue" this setting follows the one configured in the "keyvalue" section. # store: keyvalue files: # The path where files are stored basepath: ./files # relative to the binary # The maximum size of a file, as a human-readable string. # Warning: The max size is limited 2^64-1 bytes due to the underlying datatype maxsize: 20MB migration: # These are the settings for the wunderlist migrator wunderlist: # Wheter to enable the wunderlist migrator or not enable: false # The client id, required for making requests to the wunderlist api # You need to register your vikunja instance at https://developer.wunderlist.com/apps/new to get this clientid: # The client secret, also required for making requests to the wunderlist api clientsecret: # The url where clients are redirected after they authorized Vikunja to access their wunderlist stuff. # This needs to match the url you entered when registering your Vikunja instance at wunderlist. # This is usually the frontend url where the frontend then makes a request to /migration/wunderlist/migrate # with the code obtained from the wunderlist api. # Note that the vikunja frontend expects this to be /migrate/wunderlist redirecturl: todoist: # Wheter to enable the todoist migrator or not enable: false # The client id, required for making requests to the todoist api # You need to register your vikunja instance at https://developer.todoist.com/appconsole.html to get this 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. # 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. # Note that the vikunja frontend expects this to be /migrate/todoist redirecturl: <frontend url>/migrate/todoist trello: # Wheter to enable the trello migrator or not enable: false # The client id, required for making requests to the trello api # You need to register your vikunja instance at https://trello.com/app-key (log in before you visit that link) to get this key: # The url where clients are redirected after they authorized Vikunja to access their trello cards. # This needs to match the url you entered when registering your Vikunja instance at trello. # This is usually the frontend url where the frontend then makes a request to /migration/trello/migrate # with the code obtained from the trello api. # Note that the vikunja frontend expects this to end on /migrate/trello. redirecturl: <frontend url>/migrate/trello microsofttodo: # Wheter to enable the microsoft todo migrator or not enable: false # The client id, required for making requests to the microsoft graph api # See https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app#register-an-application # for information about how to register your vikuinja instance. clientid: # The client secret, also required for making requests to the microsoft graph api clientsecret: # The url where clients are redirected after they authorized Vikunja to access their microsoft todo tasks. # This needs to match the url you entered when registering your Vikunja instance at microsoft. # This is usually the frontend url where the frontend then makes a request to /migration/microsoft-todo/migrate # with the code obtained from the microsoft graph api. # Note that the vikunja frontend expects this to be /migrate/microsoft-todo redirecturl: <frontend url>/migrate/microsoft-todo avatar: # When using gravatar, this is the duration in seconds until a cached gravatar user avatar expires gravatarexpiration: 3600 backgrounds: # Whether to enable backgrounds for lists at all. enabled: true providers: upload: # Whethere to enable uploaded list backgrounds enabled: true unsplash: # Whether to enable setting backgrounds from unsplash as list backgrounds enabled: false # You need to create an application for your installation at https://unsplash.com/oauth/applications/new # and set the access token below. accesstoken: # The unsplash application id is only used for pingback and required as per their api guidelines. # You can find the Application ID in the dashboard for your API application. It should be a numeric ID. # It will only show in the UI if your application has been approved for Enterprise usage, therefore if # you’re in Demo mode, you can also find the ID in the URL at the end: https://unsplash.com/oauth/applications/:application_id applicationid: # Legal urls # Will be shown in the frontend if configured here legal: imprinturl: privacyurl: # Key Value Storage settings # The Key Value Storage is used for different kinds of things like metrics and a few cache systems. keyvalue: # The type of the storage backend. Can be either "memory" or "redis". If "redis" is chosen it needs to be configured seperately. type: "memory" auth: # Local authentication will let users log in and register (if enabled) through the db. # This is the default auth mechanism and does not require any additional configuration. local: # Enable or disable local authentication enabled: false # OpenID configuration will allow users to authenticate through a third-party OpenID Connect compatible provider.<br/> # The provider needs to support the `openid`, `profile` and `email` scopes.<br/> # **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. # If the email is not public in those cases, authenticating will fail. # **Note 2:** The frontend expects to be redirected after authentication by the third party # to <frontend-url>/auth/openid/<auth key>. Please make sure to configure the redirect url with your third party # auth service accordingy if you're using the default vikunja frontend. # 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. openid: # Enable or disable OpenID Connect authentication enabled: true # The url to redirect clients to. Defaults to the configured frontend url. If you're using Vikunja with the official # frontend, you don't need to change this value. redirecturl: <REDACTED> # A list of enabled providers providers: # The name of the provider as it will appear in the frontend. - name: vikunja # The auth url to send users to if they want to authenticate using OpenID Connect. authurl: <REDACTED> # The client ID used to authenticate Vikunja at the OpenID Connect provider. clientid: <REDACTED> # The client secret used to authenticate Vikunja at the OpenID Connect provider. clientsecret: <REDACTED> # Prometheus metrics endpoint metrics: # If set to true, enables a /metrics endpoint for prometheus to collect metrics about Vikunja. enabled: 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: # 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: ```
Author
Owner

@kolaente commented on GitHub (Feb 3, 2023):

How are you running the container? Can you share the compose file (if you have one)

@kolaente commented on GitHub (Feb 3, 2023): How are you running the container? Can you share the compose file (if you have one)
Author
Owner

@RoboMagus commented on GitHub (Feb 3, 2023):

The problem lies in the fact that my host system does not support IPv6. Had similar issues with OpenSpeedtest issue 47.

Unconditionnally listening on IPv6 ports fails if this is not supported.

@RoboMagus commented on GitHub (Feb 3, 2023): The problem lies in the fact that my host system does not support IPv6. Had similar issues with OpenSpeedtest [issue 47](https://github.com/openspeedtest/Speed-Test/issues/47). [Unconditionnally listening on IPv6](https://github.com/go-vikunja/frontend/commit/0e68bcfd5a518b5cbd0bafce1fc48d31b25e1fa1) ports fails if this is not supported.
Author
Owner

@kolaente commented on GitHub (Feb 3, 2023):

How could this be fixed?

@kolaente commented on GitHub (Feb 3, 2023): How could this be fixed?
Author
Owner

@RoboMagus commented on GitHub (Feb 3, 2023):

How could this be fixed?

For openspeedtest this was done by checking inet for IPv6 support and based on that use sed to disable IPv6 related lines in the NGINX config before startup.

Not sure if it's the best way to fix this kind of issue, but I can see if these checks can be ported and open up a PR to fix this.

@RoboMagus commented on GitHub (Feb 3, 2023): > How could this be fixed? For openspeedtest this was done by checking `inet` for IPv6 support and based on that use `sed` to disable IPv6 related lines in the NGINX config before startup. Not sure if it's the best way to fix this kind of issue, but I can see if these checks can be ported and open up a PR to fix this.
Author
Owner

@kolaente commented on GitHub (Feb 3, 2023):

A PR would be great!

@kolaente commented on GitHub (Feb 3, 2023): A PR would be great!
Author
Owner

@kolaente commented on GitHub (Feb 3, 2023):

@vlasov-y Do you have any idea about this?

@kolaente commented on GitHub (Feb 3, 2023): @vlasov-y Do you have any idea about this?
Author
Owner

@dpschen commented on GitHub (Feb 3, 2023):

Out of self-interest I just asked ChatGPT. This is what it suggested to do:

server {
    listen 80 default_server;

    if (::1) {
        listen [::1]:80;
    }
}
@dpschen commented on GitHub (Feb 3, 2023): Out of self-interest I just asked ChatGPT. This is what it suggested to do: ```nginx server { listen 80 default_server; if (::1) { listen [::1]:80; } } ```
Author
Owner

@RoboMagus commented on GitHub (Feb 3, 2023):

@dpschen, I'm very curious what's seeding ChatGPT because that if (::1) is invalid syntax:

2023/02/03 12:17:50 [emerg] 79#79: invalid condition "::1" in /etc/nginx/conf.d/default.conf:4
nginx: [emerg] invalid condition "::1" in /etc/nginx/conf.d/default.conf:4

I was hoping a fix could indeed be that easy though.

@RoboMagus commented on GitHub (Feb 3, 2023): @dpschen, I'm very curious what's seeding ChatGPT because that `if (::1)` is invalid syntax: ``` 2023/02/03 12:17:50 [emerg] 79#79: invalid condition "::1" in /etc/nginx/conf.d/default.conf:4 nginx: [emerg] invalid condition "::1" in /etc/nginx/conf.d/default.conf:4 ``` I was hoping a fix could indeed be that easy though.
Author
Owner

@dpschen commented on GitHub (Feb 3, 2023):

Yeah, sry. Very often it's just a BS-generator :D

Asked it a bit more, to understand more context after writing the comment above. Ended up being more confused than before 😆

@dpschen commented on GitHub (Feb 3, 2023): Yeah, sry. Very often it's just a BS-generator :D Asked it a bit more, to understand more context after writing the comment above. Ended up being more confused than before 😆
Author
Owner

@RoboMagus commented on GitHub (Feb 3, 2023):

Got a solution that passes my local tests (PR opened).
Digging around it's a real shame that the NGINX base image actually already performs IPv6 checks, but those results are thrown away when the template is filled in and used 🤔.

In the proposed solution, if the IPv6 check (that is also used by NGINX as default) is not passed, all IPv6 related listen lines are commented out in the final config.

@RoboMagus commented on GitHub (Feb 3, 2023): Got a solution that passes my local tests (PR opened). Digging around it's a real shame that the NGINX base image actually already performs IPv6 checks, but those results are thrown away when the template is filled in and used 🤔. In the proposed solution, if the IPv6 check (that is also used by NGINX as default) is not passed, all IPv6 related `listen` lines are commented out in the final config.
Author
Owner

@kolaente commented on GitHub (Feb 3, 2023):

Merged the PR, thank you!

@kolaente commented on GitHub (Feb 3, 2023): Merged the PR, thank you!
Author
Owner

@itsvit-vlasov-y commented on GitHub (Feb 4, 2023):

@RoboMagus Looks like that the Nginx script works in inverted manner. It appends a listen IPv6 line to the default config in case if IPv6 is available, and exists if it is not. Your fix looks great! Thanks!

@itsvit-vlasov-y commented on GitHub (Feb 4, 2023): @RoboMagus Looks like that the Nginx script works in inverted manner. It appends a listen IPv6 line to the default config in case if IPv6 is available, and exists if it is not. Your fix looks great! Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#123