WIP: nix cthulhu config #91

Draft
nerf wants to merge 2 commits from nerf/nixConfig:cthulhu into main
Owner
No description provided.
@ -0,0 +46,4 @@
# # Hosting
# download.mathebau.de Hosting
# theateraufnahmen.mathebau.de
#
Owner

Also https://mathebau.de/protokolle and possibly more

Also https://mathebau.de/protokolle and possibly more
@ -0,0 +30,4 @@
fsType = "ext4";
};
# nix puts the caching folder under /var/cache/nginx
fileSystems."/var/cache/nginx" = {
Owner

Should we have on disk caching? I think we should just supply more RAM.

Should we have on disk caching? I think we should just supply more RAM.
Author
Owner

this is replicating current behaviour

this is replicating current behaviour
@ -0,0 +1,211 @@
# All our domains fall in one or more of three categories
# proxyPass, basically handle the tls and pass the http traffick on
Owner

traffick -> traffic

traffick -> traffic
@ -0,0 +23,4 @@
# notice that nix will also parse this string and we need to escape \
# so after nix processing "~ /\.git/" will end up in the nginx config,
# with the proper regex escape.
# I find this behaiviour unexpected and a bit weird, but it catches some footguns
Owner

Does 'this' reference the line before or the setting afterwards?

Does 'this' reference the line before or the setting afterwards?
Author
Owner

I think it is unexpected that after configuring a proxy pass that some two specific kinds of version control directories are filtered

I think it is unexpected that after configuring a proxy pass that some two specific kinds of version control directories are filtered
@ -0,0 +41,4 @@
}
// virtualHostConfig.locations;
}
// virtualHostConfig;
Owner

This order of update kills the default locations settings from above as soon as there are any locations settings present.

This order of update kills the default locations settings from above as soon as there are any locations settings present.
@ -0,0 +57,4 @@
cacheHelper = targetData:
proxyHelper targetData
// {
extraConfig = ''
Owner

How does this compare to the services.nginx.recommendedGzipSettings setting?
See also services.nginx.recommendedOptimisation

How does this compare to the `services.nginx.recommendedGzipSettings` setting? See also `services.nginx.recommendedOptimisation`
Author
Owner

As context where these settings are coming from, this is what is currently configured on cthulhu.
I didn't compared them but there is some overlap for sure. At least expires max is not in the recommended sittings. For the rest I would need to check the nixpkgs nginx unit

As context where these settings are coming from, this is what is currently configured on cthulhu. I didn't compared them but there is some overlap for sure. At least `expires max` is not in the recommended sittings. For the rest I would need to check the nixpkgs nginx unit
@ -0,0 +174,4 @@
};
# TODO: we need to rebuild this for dns challenges,
# this does not work with our proxy pass challenge hand through things.
security.acme = {
Owner

Also, can we deduplicate the list of hostnames?

Also, can we deduplicate the list of hostnames?
Author
Owner

this needs to be redone anyway, it should be possible to aggregate this from the other config files

this needs to be redone anyway, it should be possible to aggregate this from the other config files
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u cthulhu:nerf-cthulhu
git switch nerf-cthulhu
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Fachschaft/nixConfig#91
No description provided.