This commit is contained in:
claudi 2026-02-19 15:16:05 +01:00
parent a20f703554
commit d799339d93
7 changed files with 29 additions and 29 deletions

View file

@ -18,10 +18,10 @@ Create a `config.json` file with the following structure:
```json
{
"app_name": "WebDrop Bridge",
"webapp_url": "https://wps.agravity.io/",
"webapp_url": "https://dev.agravity.io/",
"url_mappings": [
{
"url_prefix": "https://wpsagravitystg.file.core.windows.net/wpsagravitysync/",
"url_prefix": "https://devagravitystg.file.core.windows.net/devagravitysync/",
"local_path": "Z:"
}
],
@ -45,7 +45,7 @@ Create a `config.json` file with the following structure:
### Core Settings
- **`webapp_url`** (string): URL of the web application to load
- Example: `"https://wps.agravity.io/"`
- Example: `"https://dev.agravity.io/"`
- Supports `http://`, `https://`, or `file:///` URLs
- **`url_mappings`** (array): Azure Blob Storage URL to local path mappings
@ -55,7 +55,7 @@ Create a `config.json` file with the following structure:
- Example:
```json
{
"url_prefix": "https://wpsagravitystg.file.core.windows.net/wpsagravitysync/",
"url_prefix": "https://dev.file.core.windows.net/devagravitysync/",
"local_path": "Z:"
}
```
@ -68,7 +68,7 @@ Create a `config.json` file with the following structure:
When the web application provides a drag URL like:
```
https://wpsagravitystg.file.core.windows.net/wpsagravitysync/aN5PysnXIuRECzcRbvHkjL7g0/Hintergrund_Agravity.png
https://devagravitystg.file.core.windows.net/devagravitysync/aN5PysnXIuRECzcRbvHkjL7g0/Hintergrund_Agravity.png
```
It will be converted to:
@ -84,7 +84,7 @@ Z:\aN5PysnXIuRECzcRbvHkjL7g0\Hintergrund_Agravity.png
- **`allowed_urls`** (array): Allowed URL patterns for web content
- Empty array = no restriction
- Example: `["wps.agravity.io", "*.example.com"]`
- Example: `["dev.agravity.io", "*.example.com"]`
### Update Settings
@ -148,7 +148,7 @@ If no JSON config exists, WebDrop Bridge will load from `.env`:
```env
APP_NAME=WebDrop Bridge
WEBAPP_URL=https://wps.agravity.io/
WEBAPP_URL=https://dev.agravity.io/
ALLOWED_ROOTS=Z:/
LOG_LEVEL=INFO
WINDOW_WIDTH=1024
@ -175,14 +175,14 @@ WINDOW_HEIGHT=768
## Example Configurations
### Production (Agravity WPS)
### Production (Agravity DEV)
```json
{
"webapp_url": "https://wps.agravity.io/",
"webapp_url": "https://dev.agravity.io/",
"url_mappings": [
{
"url_prefix": "https://wpsagravitystg.file.core.windows.net/wpsagravitysync/",
"url_prefix": "https://devagravitystg.file.core.windows.net/devagravitysync/",
"local_path": "Z:"
}
],