Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Rdpgw
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
Container 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
mirror
Rdpgw
Commits
1b1d54b5
Commit
1b1d54b5
authored
1 year ago
by
Bolke de Bruin
Browse files
Options
Downloads
Patches
Plain Diff
Debug
parent
91e382c5
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmd/rdpgw/config/configuration.go
+1
-0
1 addition, 0 deletions
cmd/rdpgw/config/configuration.go
dev/docker/docker-compose-arm64.yml
+11
-0
11 additions, 0 deletions
dev/docker/docker-compose-arm64.yml
with
12 additions
and
0 deletions
cmd/rdpgw/config/configuration.go
+
1
−
0
View file @
1b1d54b5
...
...
@@ -164,6 +164,7 @@ func Load(configFile string) Configuration {
if
err
:=
k
.
Load
(
env
.
ProviderWithValue
(
"RDPGW_"
,
"."
,
func
(
s
string
,
v
string
)
(
string
,
interface
{})
{
key
:=
strings
.
Replace
(
strings
.
ToLower
(
strings
.
TrimPrefix
(
s
,
"RDPGW_"
)),
"__"
,
"."
,
-
1
)
key
=
ToCamel
(
key
)
log
.
Printf
(
"Loading env var %s as %s = %s"
,
s
,
key
,
v
)
return
key
,
v
}),
nil
);
err
!=
nil
{
log
.
Fatalf
(
"Error loading config from environment: %v"
,
err
)
...
...
This diff is collapsed.
Click to expand it.
dev/docker/docker-compose-arm64.yml
+
11
−
0
View file @
1b1d54b5
...
...
@@ -49,6 +49,17 @@ services:
condition
:
service_healthy
environment
:
RDPGW_SERVER__SESSION_STORE
:
file
RDPGW_SERVER__CERT_FILE
:
/opt/rdpgw/server.pem
RDPGW_SERVER__KEY_FILE
:
/opt/rdpgw/key.pem
RDPGW_SERVER__GATEWAY_ADDRESS
:
localhost:9443
RDPGW_SERVER__PORT
:
9443
RDPGW_SERVER__HOSTS
:
xrdp:3389
RDPGW_SERVER__ROUND_ROBIN
:
"
false"
RDPGW_OPENID__PROVIDER_URL
:
"
http://keycloak:8080/auth/realms/rdpgw"
RDPGW_OPENID__CLIENT_ID
:
rdpgw
RDPGW_OPENID__CLIENT_SECRET
:
01cd304c-6f43-4480-9479-618eb6fd578f
RDPGW_CLIENT__USERNAME_TEMPLATE
:
"
{{
username
}}"
RDPGW_CAPS__TOKEN_AUTH
:
"
true"
healthcheck
:
test
:
[
"
CMD"
,
"
curl"
,
"
-f"
,
"
http://keycloak:8080"
]
interval
:
10s
...
...
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