Open ALIP-0 opened 5 months ago
Just wondering if someone else could try this and let me know how you get on? Is it an actual bug or is it just me/my configuration ?
Edit: I have tested this again with a new config and have the same result.
@ALIP-0 Can't reproduce on latest version of v2. Running both via docker compose. Interface is shown after re-login and after wg-portal container restart.
# docker-compose.yaml
services:
wg-portal:
image: ghcr.io/h44z/wg-portal:latest
cap_add:
- NET_ADMIN
ports:
- 8888:8888
- 8080:8080
volumes:
- ./config.yml.sample:/app/config/config.yml
# Example from image docs https://hub.docker.com/_/postgres
postgres:
image: postgres
restart: always
# set shared memory limit when using docker-compose
shm_size: 128mb
# or set shared memory limit when deploy via swarm stack
#volumes:
# - type: tmpfs
# target: /dev/shm
# tmpfs:
# size: 134217728 # 128*2^20 bytes = 128Mb
environment:
POSTGRES_PASSWORD: example
# config.yml
advanced:
log_level: trace
config_storage_path: /etc/wireguard
core:
admin_user: admin
admin_password: admin
create_default_peer: false
create_default_peer_on_creation: false
web:
external_url: http://localhost:8888
request_logging: false
database:
type: postgres
dsn: "host=postgres user=postgres password=example dbname=postgres port=5432 sslmode=disable"
Did you resolve the issue?
With postgres configured wgportal creates a number of tables and data, however when i login and goto the interfaces screen no interfaces are shown, despite one being configured in the db table - i get the following error;
Failed to load interfaces: unable to load all interfaces: ERROR: prepared statement "stmtcache_78bc77220c7a756ffad09fd606f629b582d36975c88309a4" already exists (SQLSTATE 42P05)