Use source name from config file for integration endpoint uploads

Fixes: #389
This commit is contained in:
Eike Kettner
2020-10-26 22:35:25 +01:00
parent 0f84200118
commit 0114bb4d72
7 changed files with 21 additions and 4 deletions

View File

@ -23,6 +23,7 @@ let
integration-endpoint = {
enabled = false;
priority = "low";
source-name = "integration";
allowed-ips = {
enabled = false;
ips = [ "127.0.0.1" ];
@ -214,6 +215,13 @@ in {
default = defaults.integration-endpoint.priority;
description = "The priority to use when submitting files through this endpoint.";
};
source-name = mkOption {
type = types.str;
default = defaults.integration-endpoint.source-name;
description = ''
The name used for the item "source" property when uploaded through this endpoint.
'';
};
allowed-ips = mkOption {
type = types.submodule({
options = {