forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch adds an `authType` option to enable configuring FreshRSS's `auth_type` parameter. Upstream documentation for this feature is located here: https://freshrss.github.io/FreshRSS/en/admins/09_AccessControl.html An accompanying NixOS test is provided to confirm this feature works as expected.
- Loading branch information
1 parent
b49c4f8
commit c4d28ff
Showing
3 changed files
with
64 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import ./make-test-python.nix ({ lib, pkgs, ... }: { | ||
name = "freshrss"; | ||
meta.maintainers = with lib.maintainers; [ mattchrist ]; | ||
|
||
nodes.machine = { pkgs, ... }: { | ||
services.freshrss = { | ||
enable = true; | ||
baseUrl = "http://localhost"; | ||
dataDir = "/srv/freshrss"; | ||
authType = "http_auth"; | ||
}; | ||
}; | ||
|
||
testScript = '' | ||
machine.wait_for_unit("multi-user.target") | ||
machine.wait_for_open_port(80) | ||
response = machine.succeed("curl -vvv -s -H 'Host: freshrss' -H 'Remote-User: testuser' http://127.0.0.1:80/i/") | ||
assert 'Account: testuser' in response, "http_auth method didn't work." | ||
''; | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters