Skip to content
Snippets Groups Projects
Commit 706a9586 authored by Florian Sesser's avatar Florian Sesser
Browse files

Make issuer ports configurable

parent 66350e7b
No related branches found
No related tags found
3 merge requests!180merge develop into production,!177merge develop into staging,!146Manage access to payment metrics
......@@ -111,6 +111,20 @@ in {
PaymentServer. It just controls the CORS headers served.
'';
};
services.private-storage-issuer.httpPort = lib.mkOption {
type = lib.types.int;
description = ''
The port number for the HTTP endpoint.
'';
default = 80;
};
services.private-storage-issuer.httpsPort = lib.mkOption {
type = lib.types.int;
description = ''
The port number for the HTTPs endpoint.
'';
default = 443;
};
};
config =
......@@ -161,13 +175,12 @@ in {
httpsArgs =
if cfg.tls
then
"--https-port 443 " +
"--https-port ${toString cfg.httpsPort}" +
"--https-certificate-path ${certroot}/${domain}/cert.pem " +
"--https-certificate-chain-path ${certroot}/${domain}/chain.pem " +
"--https-key-path ${certroot}/${domain}/privkey.pem"
else
# Only for automated testing.
"--http-port 80";
"--http-port ${toString cfg.httpPort}";
prefixOption = s: "--cors-origin=" + s;
originStrings = map prefixOption cfg.allowedChargeOrigins;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment