Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
wg-gen-web
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
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vlbox
wg-gen-web
Commits
9cccc0f2
Commit
9cccc0f2
authored
5 years ago
by
vx3r
Browse files
Options
Downloads
Patches
Plain Diff
indent generated json
parent
c9fb3c2e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile.dev
+20
-0
20 additions, 0 deletions
Dockerfile.dev
README.md
+1
-1
1 addition, 1 deletion
README.md
repository/repository.go
+1
-1
1 addition, 1 deletion
repository/repository.go
with
22 additions
and
2 deletions
Dockerfile.dev
0 → 100644
+
20
−
0
View file @
9cccc0f2
FROM golang as build-back
WORKDIR /wg-gen-web
ADD . .
RUN go build -o wg-gen-web-linux-amd64
FROM node:10-alpine as build-front
WORKDIR /ui
ADD ui .
RUN npm install
RUN npm run build
FROM debian:stable-slim
WORKDIR /app
COPY --from=build-back /wg-gen-web/wg-gen-web-linux-amd64 .
COPY --from=build-front /ui/dist ./ui/dist
ADD .env .
RUN chmod +x ./wg-gen-web-linux-amd64
EXPOSE 8080
CMD ["/app/wg-gen-web-linux-amd64"]
This diff is collapsed.
Click to expand it.
README.md
+
1
−
1
View file @
9cccc0f2
...
@@ -106,7 +106,7 @@ Feel free to modify this file in order to use your existing keys
...
@@ -106,7 +106,7 @@ Feel free to modify this file in order to use your existing keys
## What is out of scope
## What is out of scope
*
Generation or application of any
`iptables`
or
`nftables`
rules
*
Generation or application of any
`iptables`
or
`nftables`
rules
*
Application of configuration to WireGuard
*
Application of configuration to WireGuard
by Wg Gen Web itself
## TODO
## TODO
...
...
This diff is collapsed.
Click to expand it.
repository/repository.go
+
1
−
1
View file @
9cccc0f2
...
@@ -258,7 +258,7 @@ func UpdateServer(server *model.Server) (*model.Server, error) {
...
@@ -258,7 +258,7 @@ func UpdateServer(server *model.Server) (*model.Server, error) {
// Write object to disk
// Write object to disk
func
serialize
(
id
string
,
c
interface
{})
error
{
func
serialize
(
id
string
,
c
interface
{})
error
{
b
,
err
:=
json
.
Marshal
(
c
)
b
,
err
:=
json
.
Marshal
Indent
(
c
,
""
,
" "
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
}
...
...
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