mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-21 09:58:26 +00:00
Use source name from config file for integration endpoint uploads
Fixes: #389
This commit is contained in:
@ -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 = {
|
||||
|
Reference in New Issue
Block a user