Development
This commit is contained in:
parent
efbd21cb59
commit
cc2f57aa83
3 changed files with 3 additions and 3 deletions
|
|
@ -73,7 +73,7 @@ def _generate_wg_keypair():
|
||||||
def _server_pubkey(iface):
|
def _server_pubkey(iface):
|
||||||
"""Read the server public key written by core.py --apply."""
|
"""Read the server public key written by core.py --apply."""
|
||||||
try:
|
try:
|
||||||
with open(f'{CONFIGS_DIR}/.wg-{iface}.pub') as f:
|
with open(f'{CONFIGS_DIR}/.{iface}.pub') as f:
|
||||||
return f.read().strip()
|
return f.read().strip()
|
||||||
except OSError:
|
except OSError:
|
||||||
return None
|
return None
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ All configuration lives in two JSON files. Edit these to match your network befo
|
||||||
| File | Purpose |
|
| File | Purpose |
|
||||||
|---|---|
|
|---|---|
|
||||||
| `.radius-secret` | Shared secret between FreeRADIUS and RADIUS clients (APs, switches). Generated automatically on first `--apply` when RADIUS is enabled. Root-owned intentionally. |
|
| `.radius-secret` | Shared secret between FreeRADIUS and RADIUS clients (APs, switches). Generated automatically on first `--apply` when RADIUS is enabled. Root-owned intentionally. |
|
||||||
| `.wg-<iface>.pub` | WireGuard server public key per interface (e.g. `.wg-wg0.pub`). Written by `core.py --apply`; read by the dashboard to embed in client config downloads. |
|
| `.<iface>.pub` | WireGuard server public key per interface (e.g. `.wg0.pub`). Written by `core.py --apply`; read by the dashboard to embed in client config downloads. |
|
||||||
| `.dashboard-queue` | Pending apply commands written by the dashboard; consumed by the 1-minute timer. |
|
| `.dashboard-queue` | Pending apply commands written by the dashboard; consumed by the 1-minute timer. |
|
||||||
| `.dashboard-done` | UUIDs of already-processed queue entries; prevents duplicate execution. |
|
| `.dashboard-done` | UUIDs of already-processed queue entries; prevents duplicate execution. |
|
||||||
| `.dashboard-last-run` | Epoch timestamp of the last timer execution. |
|
| `.dashboard-last-run` | Epoch timestamp of the last timer execution. |
|
||||||
|
|
|
||||||
|
|
@ -924,7 +924,7 @@ def wg_server_key_path(iface):
|
||||||
|
|
||||||
def wg_server_pubkey_path(iface):
|
def wg_server_pubkey_path(iface):
|
||||||
"""Public key written to the configs dir so the Flask app can read it."""
|
"""Public key written to the configs dir so the Flask app can read it."""
|
||||||
return SCRIPT_DIR / f".wg-{iface}.pub"
|
return SCRIPT_DIR / f".{iface}.pub"
|
||||||
|
|
||||||
def wg_conf_path_for(iface):
|
def wg_conf_path_for(iface):
|
||||||
return WG_DIR / f"{iface}.conf"
|
return WG_DIR / f"{iface}.conf"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue