summaryrefslogtreecommitdiffstats
path: root/nixos/modules/services/web-servers
AgeCommit message (Collapse)Author
2024-04-22nixos/nginx: update ciphers listSandro Jäckel
2024-04-18Merge pull request #293954 from Dan-Theriault/refactor-tailscale-authSandro
2024-04-16nixos/tailscale-auth: init moduleDan Theriault
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 Humm
2024-04-13nixos: remove all uses of lib.mdDocstuebinm
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ß
This should help us with highlighting and future formatting.
2024-03-18Merge pull request #294542 from Janik-Haag/garageLily Foster
nixos/garage: add env-var wrapper for admin cli
2024-03-18nixos/garage: add env-var wrapper for admin cliJanik H.
2024-03-10Merge pull request #282160 from gaykitty/stargazer-debug-modePol Dellaiera
nixos/stargazer: add missing debugMode setting
2024-03-09nixos/stargazer: add missing debugMode settinggaykitty
2024-02-18nixos/zope2: Remove moduleadisbladis
`zope2` is unmaintained and the module is relying on Python2.
2024-02-13nixos/garage: allow all available log levels in `cfg.logLevel`emilylange
`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 Sundt
nixos/ttyd: add `entrypoint` and `writable` option
2024-02-05nixos/ttyd: add entrypoint optionPeder Bergebakken Sundt
2024-02-05nixos/nginx: turn auth_request off for ACME challengeRobert Schütz
This is e.g. necessary when using tailscale-nginx-auth.
2024-01-31nixos/ttyd: remove `with lib;`Peder Bergebakken Sundt
2024-01-31nixos/ttyd: add writable optionPeder Bergebakken Sundt
Co-authored-by: Carsten Rodin <19612711+carstoid@users.noreply.github.com>
2024-01-25python311Packages.recursive-pth-loader: rename from recursivePthLoaderFelix Buehler
2024-01-21Merge pull request #281904 from Stunkymonkey/ttyd-fix-leakageNick Cao
ttyd: add test & use systemd LoadCredential
2024-01-20ttyd: add test & use systemd LoadCredentialFelix Buehler
2024-01-19nixos: fix a bunch of services missing dep on network-online.targetJade Lovelace
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 Lahfa
nixos/nginx: filter more options when listening has quic
2024-01-12Merge pull request #275484 from Izorkin/update-nginx-http3Ryan Lahfa
nixos/nginx: disable automatic advertise of HTTP/3 protocol support
2024-01-12Merge pull request #277925 from Izorkin/update-nginx-http2Peder Bergebakken Sundt
nixos/nginx: use new variant of http2 option for angie package
2024-01-01nginx: enable ktls support by defaultIzorkin
2024-01-01nixos/nginx: disable automatic advertise of HTTP/3 protocol supportIzorkin
Automatic advertise in the `http` block about support of HTTP/3 protocol makes it difficult to automatically configure services to work with it. HTTP/3 availability must be manually advertised, preferably in each location block.
2023-12-31nixos/nginx: use new variant of http2 option for angie packageIzorkin
2023-12-30nixos/nginx: skip adding a comment to acmeLocation in nginx configurationIzorkin
2023-12-30nixos/nginx: change position acmeLocation in nginx configurationIzorkin
2023-12-23nixos/nginx: filter more options when listening has quicSandro Jäckel
2023-12-17angie: init at 1.4.0Izorkin
2023-12-15nixos/caddy: also increase socket send buffer size as recommended by upstreamnetworkException
this patch adjusts the `boot.kernel.sysctl."net.core.wmem_max"` to match the value suggested in the quic-go wiki, just as `"net.core.wmem_max"`. see fdfdc5df21d3df985b751bc61929e2305882dd48 see https://github.com/quic-go/quic-go/issues/3923
2023-12-12Merge pull request #271506 from Misterio77/nginx-redirect-status-codeRyan Lahfa
2023-12-11nixos/nginx: make redirect status code configurableGabriel Fontes
Add an option to configure which code globalRedirect and forceSSL use. It previously was always 301 with no easy way to override.
2023-12-08nixos/nginx: allow return to be an intSandro Jäckel
2023-12-07Merge pull request #272542 from Sohalt/caddy-config-fileFlorian Klink
nixos/caddy: use caddyfile adapter by default with explicit configFile
2023-12-06nixos/caddy: Use caddyfile adapter by default when explicitly specifying ↵sohalt
configFile
2023-12-06nixos/nginx/tailscale-auth: init modulephaer
2023-11-30Merge pull request #270847 from anthonyroussel/updates/tomcat_10_1_16Mario Rodas
tomcat10: 10.1.15 -> 10.1.16
2023-11-29nixos/tomcat: add anthonyroussel to maintainersAnthony Roussel
2023-11-27treewide: use `mkPackageOption`h7x4
This commit replaces a lot of usages of `mkOption` with the package type, to be `mkPackageOption`, in order to reduce the amount of code.
2023-11-24nixos/caddy: Fixed RestartSec typo.Jonathan Davies
2023-11-19Merge pull request #265465 from jpds/caddy-restart-on-failureEmily
nixos/caddy: Set systemd unit to restart on-failure
2023-11-19Merge pull request #263550 from anthonyroussel/updates/axis2Mario Rodas
axis2: 1.7.9 -> 1.8.2, tomcat10: 10.0.27 -> 10.1.15, tomcat9: 9.0.75 -> 9.0.82
2023-11-17Merge pull request #266270 from Ma27/postgresql-ownership-15Ryan Lahfa
2023-11-13nixos/postgresql: drop ensurePermissions, fix ensureUsers for postgresql15Maximilian Bosch
Closes #216989 First of all, a bit of context: in PostgreSQL, newly created users don't have the CREATE privilege on the public schema of a database even with `ALL PRIVILEGES` granted via `ensurePermissions` which is how most of the DB users are currently set up "declaratively"[1]. This means e.g. a freshly deployed Nextcloud service will break early because Nextcloud itself cannot CREATE any tables in the public schema anymore. The other issue here is that `ensurePermissions` is a mere hack. It's effectively a mixture of SQL code (e.g. `DATABASE foo` is relying on how a value is substituted in a query. You'd have to parse a subset of SQL to actually know which object are permissions granted to for a user). After analyzing the existing modules I realized that in every case with a single exception[2] the UNIX system user is equal to the db user is equal to the db name and I don't see a compelling reason why people would change that in 99% of the cases. In fact, some modules would even break if you'd change that because the declarations of the system user & the db user are mixed up[3]. So I decided to go with something new which restricts the ways to use `ensure*` options rather than expanding those[4]. Effectively this means that * The DB user _must_ be equal to the DB name. * Permissions are granted via `ensureDBOwnerhip` for an attribute-set in `ensureUsers`. That way, the user is actually the owner and can perform `CREATE`. * For such a postgres user, a database must be declared in `ensureDatabases`. For anything else, a custom state management should be implemented. This can either be `initialScript`, doing it manual, outside of the module or by implementing proper state management for postgresql[5], but the current state of `ensure*` isn't even declarative, but a convergent tool which is what Nix actually claims to _not_ do. Regarding existing setups: there are effectively two options: * Leave everything as-is (assuming that system user == db user == db name): then the DB user will automatically become the DB owner and everything else stays the same. * Drop the `createDatabase = true;` declarations: nothing will change because a removal of `ensure*` statements is ignored, so it doesn't matter at all whether this option is kept after the first deploy (and later on you'd usually restore from backups anyways). The DB user isn't the owner of the DB then, but for an existing setup this is irrelevant because CREATE on the public schema isn't revoked from existing users (only not granted for new users). [1] not really declarative though because removals of these statements are simply ignored for instance: https://github.com/NixOS/nixpkgs/issues/206467 [2] `services.invidious`: I removed the `ensure*` part temporarily because it IMHO falls into the category "manage the state on your own" (see the commit message). See also https://github.com/NixOS/nixpkgs/pull/265857 [3] e.g. roundcube had `"DATABASE ${cfg.database.username}" = "ALL PRIVILEGES";` [4] As opposed to other changes that are considered a potential fix, but also add more things like collation for DBs or passwords that are _never_ touched again when changing those. [5] As suggested in e.g. https://github.com/NixOS/nixpkgs/issues/206467
2023-11-11Merge master into staging-nextgithub-actions[bot]
2023-11-11treewide: fix redirected and broken URLsAnthony Roussel
Using the script in maintainers/scripts/update-redirected-urls.sh
2023-11-07nixos/tomcat: remove `with lib;` and use mkEnableOptionAnthony Roussel
2023-11-06nixos/caddy: Set systemd unit to restart on-failure whilst ignoringJonathan Davies
error code 1. This is what's recommended by systemd for long-running services and helps with recovering from crashes.