Compare commits
3 Commits
593daa17bf
...
feature/ss
| Author | SHA1 | Date | |
|---|---|---|---|
| 2b9cbfd884 | |||
| 6699bf7421 | |||
| 881f812fa8 |
26
.gitignore
vendored
Normal file
26
.gitignore
vendored
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
# Python
|
||||||
|
__pycache__/
|
||||||
|
*.py[cod]
|
||||||
|
*.pyo
|
||||||
|
.env
|
||||||
|
.venv/
|
||||||
|
venv/
|
||||||
|
|
||||||
|
# Frontend
|
||||||
|
frontend/node_modules/
|
||||||
|
frontend/dist/
|
||||||
|
frontend/.env.local
|
||||||
|
|
||||||
|
# Generated shorewall output
|
||||||
|
shorewall/
|
||||||
|
shorewall.tar.gz
|
||||||
|
|
||||||
|
# Secrets
|
||||||
|
secrets
|
||||||
|
secrets/
|
||||||
|
|
||||||
|
# Editor / OS
|
||||||
|
.DS_Store
|
||||||
|
.idea/
|
||||||
|
.vscode/
|
||||||
|
*.swp
|
||||||
25
README.md
25
README.md
@@ -81,6 +81,31 @@ On the Config Detail page, click **Generate Config**:
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## Command-Line Download
|
||||||
|
|
||||||
|
Each config has a **Download Token** — a secret string that allows downloading the generated ZIP without an OIDC session. This is useful for automation scripts and CI pipelines.
|
||||||
|
|
||||||
|
### Finding your token
|
||||||
|
|
||||||
|
Open a config in the UI. The **Download Token** field is shown above the tabs. Click the copy icon to copy it.
|
||||||
|
|
||||||
|
### Downloading via curl
|
||||||
|
|
||||||
|
```bash
|
||||||
|
curl -X POST "https://<host>/api/configs/<config-id>/generate?format=zip" \
|
||||||
|
-H 'Content-Type: application/json' \
|
||||||
|
-d '{"token": "<your-download-token>"}' \
|
||||||
|
-o shorewall.zip
|
||||||
|
```
|
||||||
|
|
||||||
|
Replace `<config-id>` with the numeric ID visible in the URL when you open a config (e.g. `/configs/1`).
|
||||||
|
|
||||||
|
### Rotating the token
|
||||||
|
|
||||||
|
Click the **Regenerate** button (⟳) next to the token field. The old token is immediately invalidated. You will need to update any scripts that use it.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## API Documentation
|
## API Documentation
|
||||||
|
|
||||||
FastAPI generates interactive docs automatically:
|
FastAPI generates interactive docs automatically:
|
||||||
|
|||||||
4112
frontend/package-lock.json
generated
Normal file
4112
frontend/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -42,4 +42,4 @@ keycloak:
|
|||||||
redirectUri: https://shorefront.baumann.gr/api/auth/oidc/callback
|
redirectUri: https://shorefront.baumann.gr/api/auth/oidc/callback
|
||||||
|
|
||||||
containers:
|
containers:
|
||||||
version: "0.013"
|
version: "0.014"
|
||||||
|
|||||||
Reference in New Issue
Block a user