Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
federation fqdn
Browse files Browse the repository at this point in the history
Signed-off-by: John Andersen <[email protected]>
  • Loading branch information
pdxjohnny committed Oct 26, 2023
1 parent 51a6ac2 commit 03ba4fd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scitt_emulator/federation_activitypub_bovine.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def __init__(self, app, signals, config_path):
super().__init__(app, signals, config_path)

self.handle_name = self.config["handle_name"]
self.fqdn = self.config.get("fqdn", None)
self.workspace = Path(self.config["workspace"]).expanduser()

BovinePubSub(app)
Expand All @@ -53,7 +54,10 @@ def __init__(self, app, signals, config_path):

async def initialize_service(self):
# TODO Better domain / fqdn building
self.domain = f'http://localhost:{self.app.config["port"]}'
if self.fqdn:
self.domain = self.fqdn
else:
self.domain = f'http://localhost:{self.app.config["port"]}'

config_toml_path = pathlib.Path(self.workspace, "config.toml")
if not config_toml_path.exists():
Expand Down

0 comments on commit 03ba4fd

Please sign in to comment.