This repository has been archived by the owner on Mar 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from seknox/dev
- Loading branch information
Showing
88 changed files
with
18,238 additions
and
1,318 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
FROM golang:1.14 as gobuilder | ||
|
||
WORKDIR /go/src/seknox/trasa | ||
|
||
COPY go.mod . | ||
COPY go.sum . | ||
|
||
RUN go mod download | ||
|
||
COPY server server | ||
WORKDIR /go/src/seknox/trasa/server | ||
|
||
RUN go build | ||
|
||
|
||
FROM node:13.12.0-alpine as dashbuilder | ||
|
||
WORKDIR /trasa | ||
ENV PATH /trasa/node_modules/.bin:$PATH | ||
|
||
# install app dependencies | ||
COPY dashboard/package.json ./ | ||
RUN yarn install --silent | ||
|
||
COPY dashboard ./ | ||
|
||
|
||
RUN yarn run build | ||
|
||
FROM ubuntu:xenial-20200706 | ||
|
||
WORKDIR /trasa | ||
RUN apt-get update | ||
RUN apt-get install -y --no-install-recommends ca-certificates | ||
RUN update-ca-certificates | ||
COPY --from=gobuilder /go/src/seknox/trasa/server/server . | ||
COPY --from=dashbuilder /trasa/build /var/trasa/dashboard | ||
COPY build/etc/trasa /etc/trasa | ||
COPY build/docker/wait-for-it.sh . | ||
RUN chmod +x wait-for-it.sh | ||
CMD ["bash","/trasa/wait-for-it.sh","db:5432", "--","/trasa/server"] |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
|
||
[backup] | ||
backupdir = "$HOME/trasa/backup" | ||
|
||
[database] | ||
cacert = "/etc/trasa/certs/app.trasa.io/ca.crt" | ||
dbname = "trasadb" | ||
dbtype = "postgres" | ||
dbuser = "trasauser" | ||
port = "5432" | ||
server = "localhost" | ||
usercert = "/etc/trasa/certs/app.trasa.io/client.trasauser.crt" | ||
userkey = "/etc/trasa/certs/app.trasa.io/client.trasauser.key" | ||
|
||
|
||
|
||
[logging] | ||
level = "TRACE" | ||
|
||
[minio] | ||
status = false | ||
key = "minioadmin" | ||
secret = "minioadmin" | ||
server = "127.0.0.1:9000" | ||
usessl = false | ||
|
||
[platform] | ||
base = "private" | ||
|
||
[redis] | ||
server = "localhost:6379" | ||
|
||
[security] | ||
insecureSkipVerify = true | ||
|
||
[proxy] | ||
sshlistenAddr = "127.0.0.1:8022" | ||
dbListenAddr = "127.0.0.1:3333" | ||
guacdEnabled = false | ||
guacdAddr = "127.0.0.1:4822" | ||
|
||
|
||
[trasa] | ||
proxyDashboard = false | ||
cloudserver = "https://sg.cpxy.trasa.io" | ||
dashboard = "http://app.trasa" | ||
listenaddr = "app.trasa" | ||
orgID = "" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[Unit] | ||
Description=Cockroach Database | ||
Requires=network.target | ||
|
||
|
||
[Service] | ||
Type=notify | ||
WorkingDirectory=/var/trasa/crdb | ||
ExecStart=/usr/local/bin/cockroach start --store=/var/trasa/crdb --insecure --http-addr=127.0.0.1:8081 --listen-addr=127.0.0.1:26257 | ||
#ExecStart=/usr/local/bin/cockroach start --store=/var/trasa/crdb --http-addr=127.0.0.1:8081 --listen-addr=127.0.0.1:26257 --insecure | ||
ExecStop=/usr/local/bin/cockroach quit --insecure | ||
#--certs-dir=/etc/trasa/certs | ||
TimeoutStopSec=60 | ||
Restart=always | ||
RestartSec=10 | ||
StandardOutput=syslog | ||
StandardError=syslog | ||
SyslogIdentifier=cockroach | ||
#User=cockroach | ||
|
||
|
||
[Install] | ||
WantedBy=default.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[Unit] | ||
Description=Guacd | ||
Documentation=https://guacamole.apache.org/doc/gug/ | ||
Requires=docker.service | ||
|
||
[Service] | ||
ExecStart=/usr/bin/docker run --rm --name guacd -p 127.0.0.1:4822:4822 -v /tmp/trasa/accessproxy/guac:/tmp/trasa/accessproxy/guac -v /tmp/trasa/accessproxy/guac/shared/:/tmp/trasa/accessproxy/guac/shared/ docker.pkg.github.com/seknox/guacamole-server/guacd:0.0.1 | ||
ExecStop=/usr/bin/docker container stop guacd | ||
Restart=always | ||
|
||
|
||
[Install] | ||
WantedBy=multi-user.target |
Oops, something went wrong.