set port
This commit is contained in:
parent
7603dfccb4
commit
63129b076f
1 changed files with 9 additions and 1 deletions
|
|
@ -19,7 +19,9 @@ let
|
|||
];
|
||||
text = ''
|
||||
#!/usr/bin/env bash
|
||||
exec streamlit run /path/to/your/wanikani_stats_app.py
|
||||
echo "Starting WaniKani Stats Streamlit app..."
|
||||
cat ${./app.py}
|
||||
exec streamlit run ${./app.py} --server.port ${toString config.services.wanikani-stats.port}
|
||||
'';
|
||||
};
|
||||
in
|
||||
|
|
@ -35,6 +37,12 @@ in
|
|||
default = "/var/lib/wanikani-logs";
|
||||
description = "Directory to get the log archives";
|
||||
};
|
||||
|
||||
port = lib.mkOption {
|
||||
type = lib.types.port;
|
||||
default = 8501;
|
||||
description = "Port for the WaniKani Stats service";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.services.wanikani-stats.enable {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue