Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PrivateStorageio
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PrivateStorage
PrivateStorageio
Commits
706a9586
Commit
706a9586
authored
3 years ago
by
Florian Sesser
Browse files
Options
Downloads
Patches
Plain Diff
Make issuer ports configurable
parent
66350e7b
No related branches found
Branches containing commit
No related tags found
3 merge requests
!180
merge develop into production
,
!177
merge develop into staging
,
!146
Manage access to payment metrics
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
nixos/modules/issuer.nix
+16
-3
16 additions, 3 deletions
nixos/modules/issuer.nix
with
16 additions
and
3 deletions
nixos/modules/issuer.nix
+
16
−
3
View file @
706a9586
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment