mirror of
https://github.com/bolkedebruin/rdpgw.git
synced 2025-08-16 21:53:45 +02:00
Merge pull request #6 from alexpilotti/docker_fix
Fix Docker golang issue
This commit is contained in:
commit
c76544e5b5
2 changed files with 8 additions and 3 deletions
|
@ -10,14 +10,19 @@ RUN apt-get update && \
|
|||
-subj "/C=US/ST=VA/L=SomeCity/O=MyCompany/OU=MyDivision/CN=localhost" && \
|
||||
openssl x509 -req -days 365 -in server.csr -signkey key.pem -out server.pem
|
||||
|
||||
RUN curl -L https://dl.google.com/go/go1.14.7.linux-amd64.tar.gz -o golang.tgz && \
|
||||
tar zxvf golang.tgz && rm golang.tgz
|
||||
|
||||
RUN git clone https://github.com/bolkedebruin/rdpgw.git && \
|
||||
cd rdpgw && \
|
||||
env GOOS=linux GOARCH=amd64 go build && \
|
||||
env GOOS=linux GOARCH=amd64 GOROOT=/go /go/bin/go build && \
|
||||
mkdir -p /opt/rdpgw && \
|
||||
mv rdpgw /opt/rdpgw/rdpgw && \
|
||||
rm -rf /root/go && \
|
||||
rm -rf /rdpgw
|
||||
|
||||
RUN rm -rf /go
|
||||
|
||||
COPY rdpgw.yaml /opt/rdpgw/rdpgw.yaml
|
||||
|
||||
RUN useradd -m -d /opt/rdpgw -u 1001 -c "rdgw" rdgw && \
|
||||
|
|
|
@ -5,7 +5,7 @@ server:
|
|||
port: 9443
|
||||
hosts:
|
||||
- xrdp:3389
|
||||
roundRobin: false
|
||||
roundRobin: false
|
||||
sessionKey: thisisasessionkeyreplacethisjetz
|
||||
sessionEncryptionKey: thisisasessionkeyreplacethisnunu
|
||||
openId:
|
||||
|
@ -18,4 +18,4 @@ client:
|
|||
bandwidthAutoDetect: 1
|
||||
ConnectionType: 6
|
||||
security:
|
||||
tokenSigningKey: prettypleasereplacemeinproductio
|
||||
PAATokenSigningKey: prettypleasereplacemeinproductio
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue