-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos/dokuwiki: caddy support #122883
nixos/dokuwiki: caddy support #122883
Conversation
| locations."~ \\.php$" = { | ||
| extraConfig = '' | ||
| "~ \.php$" = { | ||
| extraConfig = '' | ||
| try_files $uri $uri/ /doku.php; | ||
| include ${pkgs.nginx}/conf/fastcgi_params; | ||
| fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
| fastcgi_param REDIRECT_STATUS 200; | ||
| fastcgi_pass unix:${config.services.phpfpm.pools."dokuwiki-${hostName}".socket}; | ||
| ${lib.optionalString (cfg.nginx.addSSL || cfg.nginx.forceSSL || cfg.nginx.onlySSL || cfg.nginx.enableACME) "fastcgi_param HTTPS on;"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your feedback! I use nixpkgs-review wip to test the commits. Is there more I can do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @onny. Yes, there are tests that need to pass (and be updated if they need to be). It would also be great if you could try it in a live environment (I used to test it on a real VM to test more complex scenarios).
Anyway, to run at least the local tests, you should run nix-build -A nixosTests.dokuwiki from your nixpkgs repo or from nixpkgs directory when doing nixpkgs-review wip.
E.g.:
nixpkgs $ nix-review pr 122883
.cache/nixpkgs-review/pr-122883-1$ cd nixpkgs
.cache/nixpkgs-review/pr-122883-1/nixpkgs$ nix-build -A nixosTests.dokuwiki
|
Oh I have to add, this pull request depends on #122647 , but hope it will be merged soon :) |
Group and user support merged into Caddy now :) |
|
@GrahamcOfBorg test dokuwiki |
|
The tests are still failing/not evaluating with the same error. |
pythonPackages.karton-asciimagic: 1.0.0 -> 1.0.1
pythonPackages.karton-classifier: 1.0.0 -> 1.1.0
pythonPackages.karton-config-extractor: 2.0.0 -> 2.0.1
adwaita-qt: 1.1.4 -> 1.3.0
…-in-test nixos/tests/cagebreak: use wayland-info instead of wallutils
pari: 2.11.4 -> 2.13.1, update sage test expectations
nixos/flatpak: Remove `guiPackages` internal option
It should be included regardless of whether tests are run or not, and overriding the package to disable tests would break this package up until this change.
…l-tools nixos-install-tools: init
podman-compose: 0.1.5 -> 0.2.0pre-2021-05-18
|
ups sorry, I somehow messed up git rebase :( |
That's alright, you could have just force pushed the fix, no need to close whole PR. Mistakes happen ;). |
Motivation for this change
To be able to combine DokuWiki with other modules that are using Caddy. This concept is unfluenced by this pull request.
Things done
sandboxinnix.confon non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)nix path-info -Sbefore and after)