1
This commit is contained in:
6
Dockerfile.dashboard
Normal file
6
Dockerfile.dashboard
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
FROM netbirdio/dashboard:latest
|
||||||
|
|
||||||
|
ENV NETBIRD_MGMT_API_ENDPOINT=https://birdy.greact.online
|
||||||
|
ENV NETBIRD_MGMT_GRPC_API_ENDPOINT=https://birdy.greact.online
|
||||||
|
ENV USE_AUTH0=false
|
||||||
|
ENV NETBIRD_AUTH_OIDC_CONFIGURATION_ENDPOINT=
|
||||||
3
Dockerfile.netbird-server
Normal file
3
Dockerfile.netbird-server
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
FROM netbirdio/netbird-server:latest
|
||||||
|
|
||||||
|
COPY config.yaml /etc/netbird/config.yaml
|
||||||
21
config.yaml
Normal file
21
config.yaml
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
server:
|
||||||
|
listenAddress: ":80"
|
||||||
|
exposedAddress: "https://birdy.greact.online"
|
||||||
|
stunPorts:
|
||||||
|
- 3478
|
||||||
|
logLevel: "info"
|
||||||
|
logFile: "console"
|
||||||
|
|
||||||
|
auth:
|
||||||
|
issuer: "https://birdy.greact.online/oauth2" # остаётся для совместимости, но должен указывать на встроенный OAuth2 сервер NetBird
|
||||||
|
localAuthDisabled: false # ВКЛЮЧАЕТ локальную аутентификацию по паролю (false = локальная разрешена)
|
||||||
|
signKeyRefreshEnabled: true
|
||||||
|
dashboardRedirectURIs:
|
||||||
|
- "https://birdy.greact.online/nb-auth"
|
||||||
|
- "https://birdy.greact.online/nb-silent-auth"
|
||||||
|
cliRedirectURIs:
|
||||||
|
- "http://localhost:53000/"
|
||||||
|
|
||||||
|
store:
|
||||||
|
engine: "sqlite"
|
||||||
|
encryptionKey: "336c2d76-3d00-4863-abc5-afe55211a36a"
|
||||||
6
dashboard.env
Normal file
6
dashboard.env
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
NETBIRD_MGMT_API_ENDPOINT=https://birdy.greact.online
|
||||||
|
NETBIRD_MGMT_GRPC_API_ENDPOINT=https://birdy.greact.online
|
||||||
|
USE_AUTH0=false # ВАЖНО: отключает Auth0
|
||||||
|
|
||||||
|
# Эти переменные можно оставить пустыми (внешний IdP не используется):
|
||||||
|
NETBIRD_AUTH_OIDC_CONFIGURATION_ENDPOINT=
|
||||||
37
docker-compose.yml
Normal file
37
docker-compose.yml
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
services:
|
||||||
|
netbird-server:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile.netbird-server
|
||||||
|
image: birdy/netbird-server:local
|
||||||
|
container_name: netbird-server
|
||||||
|
volumes:
|
||||||
|
- netbird_data:/var/lib/netbird
|
||||||
|
expose:
|
||||||
|
- "80"
|
||||||
|
- "3478/udp"
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- proxy
|
||||||
|
|
||||||
|
dashboard:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile.dashboard
|
||||||
|
image: birdy/netbird-dashboard:local
|
||||||
|
container_name: netbird-dashboard
|
||||||
|
expose:
|
||||||
|
- "80"
|
||||||
|
depends_on:
|
||||||
|
- netbird-server
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- proxy
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
netbird_data:
|
||||||
|
|
||||||
|
networks:
|
||||||
|
proxy:
|
||||||
|
external: true
|
||||||
|
|
||||||
Reference in New Issue
Block a user