2023-07-08 10:37:12 +02:00
|
|
|
"Store App settings"
|
2023-07-11 16:11:51 +02:00
|
|
|
from pathlib import Path
|
|
|
|
|
|
|
|
_ROOT_DIR = Path().parent.resolve()
|
|
|
|
KEY_PATH = _ROOT_DIR / "data" / "key.pem"
|
2023-07-06 18:35:08 +02:00
|
|
|
|
|
|
|
USER_AGENT = "COSCUP-demo"
|
|
|
|
AP_CONTENT_TYPE = "application/activity+json"
|
|
|
|
|
2023-07-11 18:10:58 +02:00
|
|
|
ACTOR_SUMMARY = "I'm banana"
|
2023-07-06 17:49:39 +02:00
|
|
|
USERNAME = "foo"
|
2023-07-11 18:10:58 +02:00
|
|
|
NICKNAME = "foo"
|
2023-07-06 17:49:39 +02:00
|
|
|
SCHEME = "http"
|
2023-07-11 18:10:58 +02:00
|
|
|
DOMAIN = "localhost"
|
|
|
|
BASE_URL = f"{SCHEME}://{DOMAIN}"
|
2023-07-06 17:49:39 +02:00
|
|
|
ID = f"{SCHEME}://{DOMAIN}/user/{USERNAME}"
|
2023-07-11 18:10:58 +02:00
|
|
|
AVATAR_URL = f"{BASE_URL}/static/avatar.png"
|