about summary refs log tree commit diff
path: root/nixos/modules/services/web-servers
AgeCommit message (Collapse)AuthorFilesLines
2024-06-26Merge pull request #311381 from minijackson/tomcat-portSandro1-2/+14
nixos/tomcat: add 'port' option
2024-06-25Merge pull request #316977 from eclairevoyant/fix-mkEnableOptionSandro1-3/+3
treewide: fix mkEnableOption usage
2024-06-20nixos/bluemap: fix defaults issue with `services.bluemap.host`Philip Taron1-3/+1
The default for this value depends on `config.networking.domain`, which is typed as `types.nullOr types.str` in nixos/modules/tasks/network-interfaces.nix As a result, the default for `services.bluemap.host` either has to be `types.nullOr types.str`, or we need to drop the default. Based on PR feedback, this commit drops the default and requires configuration through the `services.bluemap.host` option. While this is a breaking change, since the module is a month old, there should be very few users so far.
2024-06-14treewide: fix mkEnableOption usageéclairevoyant1-3/+3
2024-06-03Merge pull request #316732 from SuperSandro2000/tailscale-authSandro1-2/+2
2024-06-03nixos/garage: fix replication 1.0 assertionSarah Brofeldt1-1/+1
Use the `cfg.package.version` (string) instead of the entire package so users don't see `error: value is a set while a string was expected` instead of the intended assertion message.
2024-06-02nixos/tailscale-auth: fix enable option descriptionSandro Jäckel1-2/+2
2024-05-22Merge pull request #312771 from mweinelt/garage-data-dirMartin Weinelt1-2/+9
nixos/garage: support 0.9.0+ data_dir format
2024-05-22nixos/garage: support 0.9.0+ data_dir formatMartin Weinelt1-2/+9
https://garagehq.deuxfleurs.fr/documentation/reference-manual/configuration/#data_dir
2024-05-21nixos/bluemap: init moduleDaniel Olsen1-0/+311
2024-05-19garage: drop maintenanceRaito Bezarius1-1/+1
Given the current situation, I have not been able to take care of anything related to that module. Upgrades are merged without upgrading properly the module, unfortunately. This caused too much divergence and I still do not have the energy to take care of it. I will leave it to the more active recent committers who touched the module to take it from there. Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
2024-05-15nixos/garage: assert that replication_mode is stringFlorian Klink1-1/+21
The explicit `replication_mode` option in `services.garage.settings` has been removed and is now handled by the freeform settings in order to allow it being completely absent (for Garage 1.x). That module option previously `toString`'ed the value it's configured with, which is now no longer possible. Warn the user if they're still using a non-string here.
2024-05-15Reapply "nixos/garage: drop replication_mode setting"Florian Klink1-7/+18
This reverts commit 67cf6279d046f35a3a5be87af074ef063354d1b2. Reintroduce the option, we'll fix it in followup commits.
2024-05-15Revert "nixos/garage: drop replication_mode setting"Yureka1-18/+7
2024-05-13nixos/tomcat: add 'port' optionMinijackson1-2/+14
2024-05-13Merge pull request #309643 from flokli/garage-replication_modeFlorian Klink1-7/+18
nixos/garage: drop replication_mode setting
2024-05-13Merge pull request #307076 from flokli/caddy-reloadJörg Thalheim1-1/+1
nixos/caddy: don't set ExecReload if enableReload is disabled
2024-05-13nixos/garage: add assertion for replication_factorYureka1-0/+18
2024-05-12Merge pull request #310348 from ehmry/nginx-validateConfigFilePol Dellaiera1-1/+8
nixos/nginx: add validateConfigFile option
2024-05-12nixos/caddy: don't set ExecReload if enableReload is disabledFlorian Klink1-1/+1
Otherwise, setting services.caddy.enableReload to false fails in a very bad fashion: The reload command still gets executed, but fails: ``` Apr 26 21:23:01 n1-rk1 systemd[1]: Reloading Caddy... Apr 26 21:23:01 n1-rk1 caddy[70793]: {"level":"info","ts":1714166581.733018,"msg":"using provided configuration","config_file":"/etc/caddy/caddy_config","config_adapter":"caddyfile"} Apr 26 21:23:01 n1-rk1 caddy[70793]: {"level":"warn","ts":1714166581.7353032,"msg":"Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies","adapter":"caddyfile","file":"/etc/caddy/caddy_config","line":3} Apr 26 21:23:01 n1-rk1 caddy[70793]: Error: sending configuration to instance: performing request: Post "http://localhost:2019/load": dial tcp [::1]:2019: connect: connection refused Apr 26 21:23:01 n1-rk1 systemd[1]: caddy.service: Control process exited, code=exited, status=1/FAILURE Apr 26 21:23:01 n1-rk1 systemd[1]: Reload failed for Caddy. ``` … and the server is not restarted either, as a ExecReload= command is specified. Fix this, by only setting ExecReload if the reload exists. The first empty string is still necessary to reset the old option.
2024-05-10nixos/nginx: fix reference to acme cert hostnameFranz Pletz1-1/+1
The change introduced in #308303 refers to the virtualHosts attrset key which can be any string. The servername is the actual primary hostname used for the certificate. This fixes use cases like: services.nginx.virualHosts.foobar.serverName = "my.fqdn.org";
2024-05-09nixos/nginx: add validateConfigFile optionEmery Hemingway1-1/+8
Add an option to disable configuration file processing and validation.
2024-05-07treewide: ReadWriteDirectories -> ReadWritePaths.Niklas Hambüchen2-2/+2
These were renamed in systemd v231: https://github.com/systemd/systemd/commit/2a624c36e646e9ef8d204a506b12e7dbd380e111
2024-05-06nixos/garage: drop replication_mode settingFlorian Klink1-7/+0
This got broken up into separate `replication_factor` and `consistency_mode` settings with Garage 1.x, and due to the the "none" default kicking in, Garage fails to startup with > : Error: Either the legacy replication_mode or replication_level and consistency_mode can be set, not both. if we actually make the migratiom as documented in the migration guide. Drop this explicit setting, so users can set replication_mode or replication_factor/consistency_mode, depending on the version they're using.
2024-05-06nixos/caddy: Comment why ExecStart is resetNiklas Hambüchen1-0/+1
2024-05-01nixos/nginx: don't add .well-known locations for acme when using DNS-01 ↵Lynn1-1/+2
challenge
2024-04-22nixos/nginx: update ciphers listSandro Jäckel1-1/+1
2024-04-18Merge pull request #293954 from Dan-Theriault/refactor-tailscale-authSandro1-80/+20
2024-04-16nixos/tailscale-auth: init moduleDan Theriault1-80/+20
This additional module allows the tailscale auth proxy to be configured independently of nginx. The tailscale auth proxy works with both caddy and traefik. All prior nginx/tailscale-auth options are retained as aliases.
2024-04-16nixos/nginx: allow for resolving IPv6 addresses onlyKerstin Humm1-1/+17
2024-04-13nixos: remove all uses of lib.mdDocstuebinm37-431/+430
these changes were generated with nixq 0.0.2, by running nixq ">> lib.mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix nixq ">> mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix nixq ">> Inherit >> mdDoc[remove]" --batchmode nixos/**.nix two mentions of the mdDoc function remain in nixos/, both of which are inside of comments. Since lib.mdDoc is already defined as just id, this commit is a no-op as far as Nix (and the built manual) is concerned.
2024-03-28treewide: Mark Nix blocks in markdown as NixJanne Heß1-1/+1
This should help us with highlighting and future formatting.
2024-03-18Merge pull request #294542 from Janik-Haag/garageLily Foster1-1/+13
nixos/garage: add env-var wrapper for admin cli
2024-03-18nixos/garage: add env-var wrapper for admin cliJanik H.1-1/+13
2024-03-10Merge pull request #282160 from gaykitty/stargazer-debug-modePol Dellaiera1-1/+7
nixos/stargazer: add missing debugMode setting
2024-03-09nixos/stargazer: add missing debugMode settinggaykitty1-1/+7
2024-02-18nixos/zope2: Remove moduleadisbladis1-262/+0
`zope2` is unmaintained and the module is relying on Python2.
2024-02-13nixos/garage: allow all available log levels in `cfg.logLevel`emilylange1-1/+1
`error` and `warn` have always been valid log levels. But because the upstream docs never mentioned those, we simply didn't add them to the enum of our module option. The upstream docs have been updated and now mention `error` and `warn` as well. Upstream PR: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/716
2024-02-13Merge pull request #285314 from pbsds/ttyd-1706718068Peder Bergebakken Sundt1-29/+63
nixos/ttyd: add `entrypoint` and `writable` option
2024-02-05nixos/ttyd: add entrypoint optionPeder Bergebakken Sundt1-7/+25
2024-02-05nixos/nginx: turn auth_request off for ACME challengeRobert Schütz1-0/+2
This is e.g. necessary when using tailscale-nginx-auth.
2024-01-31nixos/ttyd: remove `with lib;`Peder Bergebakken Sundt1-24/+30
2024-01-31nixos/ttyd: add writable optionPeder Bergebakken Sundt1-0/+10
Co-authored-by: Carsten Rodin <19612711+carstoid@users.noreply.github.com>
2024-01-25python311Packages.recursive-pth-loader: rename from recursivePthLoaderFelix Buehler1-1/+1
2024-01-21Merge pull request #281904 from Stunkymonkey/ttyd-fix-leakageNick Cao1-1/+2
ttyd: add test & use systemd LoadCredential
2024-01-20ttyd: add test & use systemd LoadCredentialFelix Buehler1-1/+2
2024-01-19nixos: fix a bunch of services missing dep on network-online.targetJade Lovelace4-0/+4
This was done by generating a truly hilarious configuration: rg 'services\.[^.]+\.enable\t' opts-tags | cut -f1 > allonconfig.nix The following were not tested due to other evaluation errors. They should probably be manually audited. services.amule services.castopod services.ceph services.chatgpt-retrieval-plugin services.clamsmtp services.clight services.dante services.dex services.discourse services.dwm-status services.engelsystem services.foundationdb services.frigate services.frp services.grocy services.guacamole-client services.hedgedoc services.home-assistant services.honk services.imaginary services.jitsi-meet services.kerberos_server services.limesurvey services.mastodon services.mediawiki services.mobilizon services.moodle services.mosquitto services.nextcloud services.nullmailer services.patroni services.pfix-srsd services.pgpkeyserver-lite services.postfixadmin services.roundcube services.schleuder services.self-deploy services.slskd services.spacecookie services.statsd services.step-ca services.sympa services.tsmBackup services.vdirsyncer services.vikunja services.yandex-disk services.zabbixWeb
2024-01-12Merge pull request #270270 from SuperSandro2000/nginx-fastopenRyan Lahfa1-2/+2
nixos/nginx: filter more options when listening has quic
2024-01-12Merge pull request #275484 from Izorkin/update-nginx-http3Ryan Lahfa2-10/+3
nixos/nginx: disable automatic advertise of HTTP/3 protocol support
2024-01-12Merge pull request #277925 from Izorkin/update-nginx-http2Peder Bergebakken Sundt1-1/+1
nixos/nginx: use new variant of http2 option for angie package