Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
J
jnk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
leap
jnk
Commits
f532c13b
Commit
f532c13b
authored
11 months ago
by
power puffin
Browse files
Options
Downloads
Patches
Plain Diff
Added config options for Lets Encrypt staging environment in menshen
parent
0fb116cd
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pkg/config/config.go
+4
-0
4 additions, 0 deletions
pkg/config/config.go
pkg/docker/runvpn.go
+1
-0
1 addition, 0 deletions
pkg/docker/runvpn.go
with
5 additions
and
0 deletions
pkg/config/config.go
+
4
−
0
View file @
f532c13b
...
...
@@ -35,6 +35,7 @@ type Config struct {
MenshenAllowGatewayList
bool
MenshenAllowBridgeList
bool
MenshenAutoTLS
bool
MenshenLeStaging
bool
MenshenFromEIPURL
string
MenshenClientCertURL
string
MenshenCAFile
string
...
...
@@ -88,6 +89,9 @@ func NewConfigFromViper() *Config {
cfg
.
MenshenAutoTLS
=
autotls
}
}
if
leStaging
:=
viper
.
GetBool
(
"menshen.le-staging"
);
leStaging
{
cfg
.
MenshenLeStaging
=
leStaging
}
gwList
:=
viper
.
GetBool
(
"menshen.allow-gateway-list"
)
cfg
.
MenshenAllowGatewayList
=
gwList
...
...
This diff is collapsed.
Click to expand it.
pkg/docker/runvpn.go
+
1
−
0
View file @
f532c13b
...
...
@@ -104,6 +104,7 @@ func RunVPN() {
fmt
.
Sprintf
(
"MENSHEN_ALLOW_GATEWAY_LIST=%v"
,
cfg
.
MenshenAllowGatewayList
),
fmt
.
Sprintf
(
"MENSHEN_ALLOW_BRIDGE_LIST=%v"
,
cfg
.
MenshenAllowBridgeList
),
fmt
.
Sprintf
(
"MENSHEN_AUTO_TLS=%v"
,
cfg
.
MenshenAutoTLS
),
fmt
.
Sprintf
(
"MENSHEN_LE_STAGING=%v"
,
cfg
.
MenshenLeStaging
),
fmt
.
Sprintf
(
"MENSHEN_PORT=%v"
,
cfg
.
MenshenPort
),
fmt
.
Sprintf
(
"MENSHEN_SERVER_NAME=%v"
,
cfg
.
MenshenServerName
),
fmt
.
Sprintf
(
"MENSHEN_CA_FILE=%v"
,
cfg
.
MenshenCAFile
),
...
...
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