WIP: nix cthulhu config #91

Draft
nerf wants to merge 2 commits from nerf/nixConfig:cthulhu into main
Owner
No description provided.
nerf added 1 commit 2025-06-25 13:47:36 +00:00
nerf force-pushed cthulhu from 91763734ee to 41d7652cb4 2025-06-25 13:58:39 +00:00 Compare
nerf force-pushed cthulhu from 41d7652cb4 to a7c1e37375 2025-06-26 15:20:15 +00:00 Compare
nerf added 1 commit 2025-07-01 13:52:56 +00:00
nerf force-pushed cthulhu from 42b0d35691 to bdcb962b53 2025-07-02 18:52:15 +00:00 Compare
Gonne reviewed 2025-07-02 19:20:58 +00:00
@ -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
Gonne reviewed 2025-07-03 13:17:49 +00:00
@ -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.
@ -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?
@ -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`
@ -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?
This pull request is marked as a work in progress.
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 checkout 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.