COSCUP-ap-demo/demo/config.py.simple

18 lines
423 B
Text
Raw Normal View History

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"
ACTOR_SUMMARY = "I'm banana"
2023-07-06 17:49:39 +02:00
USERNAME = "foo"
NICKNAME = "foo"
2023-07-06 17:49:39 +02:00
SCHEME = "http"
DOMAIN = "localhost"
BASE_URL = f"{SCHEME}://{DOMAIN}"
2023-07-06 17:49:39 +02:00
ID = f"{SCHEME}://{DOMAIN}/user/{USERNAME}"
AVATAR_URL = f"{BASE_URL}/static/avatar.png"