hh
This commit is contained in:
@@ -19,17 +19,12 @@ server and uses it as a remote storage backend through the RemoteStorageBackend.
|
||||
|
||||
### On PC:
|
||||
1. Install requests: pip install requests
|
||||
2. Add to config.json:
|
||||
{
|
||||
"remote_storages": [
|
||||
{
|
||||
"name": "phone",
|
||||
"url": "http://192.168.1.100:5000",
|
||||
"api_key": "mysecretkey",
|
||||
"timeout": 30
|
||||
}
|
||||
]
|
||||
}
|
||||
2. Add to config.conf:
|
||||
[store=remote]
|
||||
name="phone"
|
||||
url="http://192.168.1.100:5000"
|
||||
api_key="mysecretkey"
|
||||
timeout=30
|
||||
Note: API key is optional. Works on WiFi or cellular data.
|
||||
|
||||
## USAGE
|
||||
@@ -497,15 +492,13 @@ def main():
|
||||
print(f"Health URL: http://{local_ip}:{args.port}/health")
|
||||
print(f"API Key: {'Enabled - ' + ('***' + args.api_key[-4:]) if args.api_key else 'Disabled (no auth)'}")
|
||||
print(f"Debug Mode: {args.debug}")
|
||||
print(f"\n📋 Config for config.json:")
|
||||
config_entry = {
|
||||
"name": "phone",
|
||||
"url": f"http://{local_ip}:{args.port}",
|
||||
"timeout": 30
|
||||
}
|
||||
print("\n📋 Config for config.conf:")
|
||||
print("[store=remote]")
|
||||
print("name=\"phone\"")
|
||||
print(f"url=\"http://{local_ip}:{args.port}\"")
|
||||
if args.api_key:
|
||||
config_entry["api_key"] = args.api_key
|
||||
print(json.dumps(config_entry, indent=2))
|
||||
print(f"api_key=\"{args.api_key}\"")
|
||||
print("timeout=30")
|
||||
print(f"\n{'='*70}\n")
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user