mirror of
https://github.com/bolkedebruin/rdpgw.git
synced 2025-08-17 14:03:50 +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" && \
|
-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
|
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 && \
|
RUN git clone https://github.com/bolkedebruin/rdpgw.git && \
|
||||||
cd rdpgw && \
|
cd rdpgw && \
|
||||||
env GOOS=linux GOARCH=amd64 go build && \
|
env GOOS=linux GOARCH=amd64 GOROOT=/go /go/bin/go build && \
|
||||||
mkdir -p /opt/rdpgw && \
|
mkdir -p /opt/rdpgw && \
|
||||||
mv rdpgw /opt/rdpgw/rdpgw && \
|
mv rdpgw /opt/rdpgw/rdpgw && \
|
||||||
rm -rf /root/go && \
|
rm -rf /root/go && \
|
||||||
rm -rf /rdpgw
|
rm -rf /rdpgw
|
||||||
|
|
||||||
|
RUN rm -rf /go
|
||||||
|
|
||||||
COPY rdpgw.yaml /opt/rdpgw/rdpgw.yaml
|
COPY rdpgw.yaml /opt/rdpgw/rdpgw.yaml
|
||||||
|
|
||||||
RUN useradd -m -d /opt/rdpgw -u 1001 -c "rdgw" rdgw && \
|
RUN useradd -m -d /opt/rdpgw -u 1001 -c "rdgw" rdgw && \
|
||||||
|
|
|
@ -5,7 +5,7 @@ server:
|
||||||
port: 9443
|
port: 9443
|
||||||
hosts:
|
hosts:
|
||||||
- xrdp:3389
|
- xrdp:3389
|
||||||
roundRobin: false
|
roundRobin: false
|
||||||
sessionKey: thisisasessionkeyreplacethisjetz
|
sessionKey: thisisasessionkeyreplacethisjetz
|
||||||
sessionEncryptionKey: thisisasessionkeyreplacethisnunu
|
sessionEncryptionKey: thisisasessionkeyreplacethisnunu
|
||||||
openId:
|
openId:
|
||||||
|
@ -18,4 +18,4 @@ client:
|
||||||
bandwidthAutoDetect: 1
|
bandwidthAutoDetect: 1
|
||||||
ConnectionType: 6
|
ConnectionType: 6
|
||||||
security:
|
security:
|
||||||
tokenSigningKey: prettypleasereplacemeinproductio
|
PAATokenSigningKey: prettypleasereplacemeinproductio
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue