mirror of
https://github.com/dump-dvb/nix-config.git
synced 2024-06-03 06:49:24 +02:00
data-hoarder: add api. to nginx
This commit is contained in:
parent
3dc6324e16
commit
986535c23f
|
@ -14,4 +14,22 @@ in {
|
|||
stopsFile = config.dump-dvb.stopsJson;
|
||||
};
|
||||
|
||||
services = {
|
||||
nginx = {
|
||||
enable = true;
|
||||
recommendedProxySettings = true;
|
||||
virtualHosts = {
|
||||
"api.${config.dump-dvb.domain}" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations = {
|
||||
"/" = {
|
||||
proxyPass = with config.dump-dvb.api; "http://127.0.0.1:${toString port}/";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user