miniflux: add ability to share content
This commit is contained in:
parent
20ce4199ba
commit
3c2f598cb1
1 changed files with 11 additions and 3 deletions
|
@ -3,13 +3,16 @@
|
|||
let
|
||||
svc_domain = "miniflux.${config.mine.shared.settings.domain}";
|
||||
port = 6466;
|
||||
|
||||
listenOn = "localhost:${builtins.toString port}";
|
||||
httpListenOn = "http://${listenOn}";
|
||||
in {
|
||||
services.miniflux = {
|
||||
enable = true;
|
||||
|
||||
config = {
|
||||
# listen only on localhost
|
||||
LISTEN_ADDR = "localhost:${builtins.toString port}";
|
||||
LISTEN_ADDR = listenOn;
|
||||
|
||||
# setup the correct baseurl
|
||||
BASE_URL = "https://${svc_domain}";
|
||||
|
@ -34,10 +37,15 @@ in {
|
|||
enableACME = true;
|
||||
|
||||
locations."/" = config.mine.shared.lib.authelia.mkProtectedLocation {
|
||||
proxyPass = "http://localhost:${builtins.toString port}";
|
||||
proxyPass = httpListenOn;
|
||||
};
|
||||
|
||||
locations."/v1".proxyPass = "http://localhost:${builtins.toString port}";
|
||||
# allow API for mobile apps etc.
|
||||
locations."/v1".proxyPass = httpListenOn;
|
||||
|
||||
# allow sharing
|
||||
locations."/share".proxyPass = httpListenOn;
|
||||
locations."~* \.(js|jpg|png|css)$".proxyPass = httpListenOn;
|
||||
};
|
||||
|
||||
# meta
|
||||
|
|
Loading…
Reference in a new issue