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
0fb116cd
Commit
0fb116cd
authored
11 months ago
by
cyberta
Committed by
flipsimon
11 months ago
Browse files
Options
Downloads
Patches
Plain Diff
add ca-file and client-cert-url flags to menshen section of the config
parent
e7a53af0
No related branches found
Branches containing commit
Tags
v0.1
1 merge request
!11
add ca-file and client-cert-url flags to menshen section of the config
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+3
-0
3 additions, 0 deletions
README.md
pkg/config/config.go
+2
-0
2 additions, 0 deletions
pkg/config/config.go
pkg/docker/runvpn.go
+2
-0
2 additions, 0 deletions
pkg/docker/runvpn.go
with
7 additions
and
0 deletions
README.md
+
3
−
0
View file @
0fb116cd
...
...
@@ -26,6 +26,7 @@ auto-tls = true
server-name = <domain name of the remote machine>
...
```
The option
`ca-file`
defines a file path to the CA cert that is used for the communication to
`from-eip-url`
and
`client-cert-url`
. The impliceit assumtion here is that both endpoints are part of a Lilypad v3 deployment.
### Example config
```
ini
...
...
@@ -38,6 +39,8 @@ openvpn =
enabled
=
true
auto-tls
=
false
from-eip-url
=
https://api.black.riseup.net:4430/3/config/eip-service.json
ca-file
=
~/ca.crt
client-cert-url
=
https://api.black.riseup.net:4430/3/cert
allow-gateway-list
=
true
allow-bridge-list
=
true
port
=
80
...
...
This diff is collapsed.
Click to expand it.
pkg/config/config.go
+
2
−
0
View file @
0fb116cd
...
...
@@ -36,6 +36,8 @@ type Config struct {
MenshenAllowBridgeList
bool
MenshenAutoTLS
bool
MenshenFromEIPURL
string
MenshenClientCertURL
string
MenshenCAFile
string
MenshenPort
int
MenshenServerName
string
LocalBridges
[]
string
...
...
This diff is collapsed.
Click to expand it.
pkg/docker/runvpn.go
+
2
−
0
View file @
0fb116cd
...
...
@@ -106,6 +106,8 @@ func RunVPN() {
fmt
.
Sprintf
(
"MENSHEN_AUTO_TLS=%v"
,
cfg
.
MenshenAutoTLS
),
fmt
.
Sprintf
(
"MENSHEN_PORT=%v"
,
cfg
.
MenshenPort
),
fmt
.
Sprintf
(
"MENSHEN_SERVER_NAME=%v"
,
cfg
.
MenshenServerName
),
fmt
.
Sprintf
(
"MENSHEN_CA_FILE=%v"
,
cfg
.
MenshenCAFile
),
fmt
.
Sprintf
(
"MENSHEN_CLIENT_CERT_URL=%v"
,
cfg
.
MenshenClientCertURL
),
fmt
.
Sprintf
(
"MENSHEN_FROM_EIP_URL=%s"
,
cfg
.
MenshenFromEIPURL
),
fmt
.
Sprintf
(
"MENSHEN_LOCALBRIDGES=%s"
,
strings
.
Join
(
cfg
.
LocalBridges
,
`,`
)),
},
...
...
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