Admins will be upgrading ORNL GitLab Servers on Saturday, 16 May 2026, from 7 AM until 11 AM EST. Repositories will experience intermittent outages during this time.
description="The domain under which open-web-calendar is made available";
example="open-web-calendar.example.org";
};
settings=mkOption{
type=types.submodule{
freeformType=settingsFormat.type;
options={
ALLOWED_HOSTS=mkOption{
type=types.str;
readOnly=true;
description=''
The hosts that the Open Web Calendar permits. This is required to
mitigate the Host Header Injection vulnerability.
We always set this to the empty list, as Nginx already checks the Host header.
'';
default="";
};
};
};
default={};
description=''
Configuration for the server. These are set as environment variables to the gunicorn/flask service.
See the documentation options in <https://open-web-calendar.quelltext.eu/host/configure/#configuring-the-server>.
'';
};
calendarSettings=mkOption{
type=types.submodule{
freeformType=calendarSettingsFormat.type;
options={};
};
default={};
description=''
Configure the default calendar.
See the documentation options in <https://open-web-calendar.quelltext.eu/host/configure/#configuring-the-default-calendar> and <https://github.com/niccokunzmann/open-web-calendar/blob/master/open_web_calendar/default_specification.yml>.
Individual calendar instances can be further configured outside this module, by specifying the `specification_url` parameter.
'';
};
};
config=mkIfcfg.enable{
assertions=[
{
assertion=!cfg.settings?"PORT";
message=''
services.open-web-calendar.settings.PORT can't be set, as the service uses a unix socket.