mirror of
https://github.com/WSA-Installer/wsa-webdav.git
synced 2026-07-29 11:24:16 -07:00
60 lines
1.4 KiB
Markdown
60 lines
1.4 KiB
Markdown
# Configuration
|
|
|
|
WSA WebDev is configured via `config.json`.
|
|
|
|
## Default Configuration
|
|
|
|
```json
|
|
{
|
|
"port": 8088,
|
|
"host": "127.0.0.1",
|
|
"rootAccess": true,
|
|
"anonymousAccess": true,
|
|
"maxConnections": 50
|
|
}
|
|
```
|
|
|
|
## Configuration Options
|
|
|
|
| Option | Type | Default | Description |
|
|
|:-------|:-----|:--------|:------------|
|
|
| `port` | integer | 8088 | Server port |
|
|
| `host` | string | "127.0.0.1" | Server host |
|
|
| `rootAccess` | boolean | true | Enable root filesystem access |
|
|
| `anonymousAccess` | boolean | true | Allow anonymous access |
|
|
| `maxConnections` | integer | 50 | Maximum concurrent connections |
|
|
|
|
## Changing Configuration
|
|
|
|
### Via Web File Manager
|
|
|
|
1. Open the web file manager
|
|
2. Navigate to `/data/data/com.wsa.webdav/files/`
|
|
3. Edit `config.json`
|
|
4. Restart the server
|
|
|
|
### Via ADB
|
|
|
|
```bash
|
|
adb shell "echo '{\"port\": 9090}' > /data/data/com.wsa.webdav/files/config.json"
|
|
adb shell am broadcast -a com.wsa.webdav.RESTART
|
|
```
|
|
|
|
## Port Configuration
|
|
|
|
The default port is 8088. To change it:
|
|
|
|
1. Update `config.json`
|
|
2. Restart the WebDAV server
|
|
3. Update the port forward:
|
|
```bash
|
|
adb forward tcp:NEW_PORT tcp:NEW_PORT
|
|
```
|
|
|
|
## Security Considerations
|
|
|
|
- The server is designed for local use only
|
|
- Do not expose port 8088 to the network without authentication
|
|
- Root access provides full filesystem access — use with caution
|
|
- Anonymous access allows unauthenticated connections
|