Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Place1 committed Feb 20, 2020
1 parent a0f4597 commit fa4948b
Show file tree
Hide file tree
Showing 14 changed files with 34 additions and 34 deletions.
4 changes: 2 additions & 2 deletions demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fi

CONFIG_FILE="$1"

docker build -t place1/wireguard-access-server .
docker build -t place1/wg-access-server .

docker run \
-it \
Expand All @@ -29,4 +29,4 @@ docker run \
-p 8000:8000/tcp \
-p 51820:51820/udp \
-p 53:53/udp \
place1/wireguard-access-server /server --config /config.yaml
place1/wg-access-server /server --config /config.yaml
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/place1/wireguard-access-server
module github.com/place1/wg-access-server

go 1.13

Expand Down
2 changes: 1 addition & 1 deletion internal/auth/authconfig/authconfig.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package authconfig

import (
"github.com/place1/wireguard-access-server/internal/auth/authruntime"
"github.com/place1/wg-access-server/internal/auth/authruntime"
)

type AuthConfig struct {
Expand Down
4 changes: 2 additions & 2 deletions internal/auth/authconfig/basic.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"net/http"
"strings"

"github.com/place1/wireguard-access-server/internal/auth/authruntime"
"github.com/place1/wireguard-access-server/internal/auth/authsession"
"github.com/place1/wg-access-server/internal/auth/authruntime"
"github.com/place1/wg-access-server/internal/auth/authsession"
"github.com/tg123/go-htpasswd"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/auth/authconfig/gitlab.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package authconfig

import "github.com/place1/wireguard-access-server/internal/auth/authruntime"
import "github.com/place1/wg-access-server/internal/auth/authruntime"

type GitlabConfig struct {
Name string `yaml:"name"`
Expand Down
6 changes: 3 additions & 3 deletions internal/auth/authconfig/oidc.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"github.com/coreos/go-oidc"
"github.com/gorilla/mux"
"github.com/pkg/errors"
"github.com/place1/wireguard-access-server/internal/auth/authruntime"
"github.com/place1/wireguard-access-server/internal/auth/authsession"
"github.com/place1/wireguard-access-server/internal/auth/authutil"
"github.com/place1/wg-access-server/internal/auth/authruntime"
"github.com/place1/wg-access-server/internal/auth/authsession"
"github.com/place1/wg-access-server/internal/auth/authutil"
"github.com/sirupsen/logrus"
"golang.org/x/oauth2"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/auth/authruntime/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/gorilla/mux"
"github.com/gorilla/sessions"
"github.com/place1/wireguard-access-server/internal/auth/authsession"
"github.com/place1/wg-access-server/internal/auth/authsession"
)

type Provider struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/auth/authtemplates/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"html/template"
"io"

"github.com/place1/wireguard-access-server/internal/auth/authruntime"
"github.com/place1/wg-access-server/internal/auth/authruntime"
)

type LoginPage struct {
Expand Down
10 changes: 5 additions & 5 deletions internal/auth/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"net/http"
"strconv"

"github.com/place1/wireguard-access-server/internal/auth/authconfig"
"github.com/place1/wireguard-access-server/internal/auth/authruntime"
"github.com/place1/wireguard-access-server/internal/auth/authsession"
"github.com/place1/wireguard-access-server/internal/auth/authtemplates"
"github.com/place1/wireguard-access-server/internal/auth/authutil"
"github.com/place1/wg-access-server/internal/auth/authconfig"
"github.com/place1/wg-access-server/internal/auth/authruntime"
"github.com/place1/wg-access-server/internal/auth/authsession"
"github.com/place1/wg-access-server/internal/auth/authtemplates"
"github.com/place1/wg-access-server/internal/auth/authutil"

"github.com/gorilla/mux"
"github.com/gorilla/sessions"
Expand Down
2 changes: 1 addition & 1 deletion internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"gopkg.in/yaml.v2"

"github.com/place1/wireguard-access-server/internal/auth/authconfig"
"github.com/place1/wg-access-server/internal/auth/authconfig"
"github.com/vishvananda/netlink"

"github.com/pkg/errors"
Expand Down
2 changes: 1 addition & 1 deletion internal/devices/devices.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/place1/wg-embed/pkg/wgembed"

"github.com/pkg/errors"
"github.com/place1/wireguard-access-server/internal/storage"
"github.com/place1/wg-access-server/internal/storage"
"github.com/sirupsen/logrus"
)

Expand Down
8 changes: 4 additions & 4 deletions internal/services/device_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ package services
import (
"context"

"github.com/place1/wireguard-access-server/internal/auth/authsession"
"github.com/place1/wg-access-server/internal/auth/authsession"

"github.com/golang/protobuf/ptypes/empty"
"github.com/place1/wireguard-access-server/internal/devices"
"github.com/place1/wireguard-access-server/internal/storage"
"github.com/place1/wireguard-access-server/proto/proto"
"github.com/place1/wg-access-server/internal/devices"
"github.com/place1/wg-access-server/internal/storage"
"github.com/place1/wg-access-server/proto/proto"
"github.com/sirupsen/logrus"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
Expand Down
6 changes: 3 additions & 3 deletions internal/services/server_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"

"github.com/place1/wg-embed/pkg/wgembed"
"github.com/place1/wireguard-access-server/internal/auth/authsession"
"github.com/place1/wireguard-access-server/internal/config"
"github.com/place1/wireguard-access-server/proto/proto"
"github.com/place1/wg-access-server/internal/auth/authsession"
"github.com/place1/wg-access-server/internal/config"
"github.com/place1/wg-access-server/proto/proto"
"github.com/sirupsen/logrus"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
Expand Down
16 changes: 8 additions & 8 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ import (
"runtime/debug"

"github.com/improbable-eng/grpc-web/go/grpcweb"
"github.com/place1/wireguard-access-server/proto/proto"
"github.com/place1/wg-access-server/proto/proto"

"github.com/gorilla/mux"
"github.com/place1/wg-embed/pkg/wgembed"

"github.com/pkg/errors"
"github.com/place1/wireguard-access-server/internal/auth"
"github.com/place1/wireguard-access-server/internal/auth/authsession"
"github.com/place1/wireguard-access-server/internal/config"
"github.com/place1/wireguard-access-server/internal/devices"
"github.com/place1/wireguard-access-server/internal/dnsproxy"
"github.com/place1/wireguard-access-server/internal/services"
"github.com/place1/wireguard-access-server/internal/storage"
"github.com/place1/wg-access-server/internal/auth"
"github.com/place1/wg-access-server/internal/auth/authsession"
"github.com/place1/wg-access-server/internal/config"
"github.com/place1/wg-access-server/internal/devices"
"github.com/place1/wg-access-server/internal/dnsproxy"
"github.com/place1/wg-access-server/internal/services"
"github.com/place1/wg-access-server/internal/storage"
"github.com/sirupsen/logrus"

grpc_middleware "github.com/grpc-ecosystem/go-grpc-middleware"
Expand Down

0 comments on commit fa4948b

Please sign in to comment.