diff --git a/core/models/config.py b/core/models/config.py
index 48eda4e..3c46947 100644
--- a/core/models/config.py
+++ b/core/models/config.py
@@ -296,3 +296,4 @@ class Config(models.Model):
site_icon: UploadedImage | None = None
hide_login: bool = False
custom_css: str = ""
+ single_user: str = ""
diff --git a/core/views.py b/core/views.py
index 4171736..1b4f348 100644
--- a/core/views.py
+++ b/core/views.py
@@ -18,6 +18,8 @@ from core.models import Config
def homepage(request):
if request.user.is_authenticated:
return Home.as_view()(request)
+ elif request.domain.config_domain.single_user:
+ return redirect(f"/@{request.domain.config_domain.single_user}/")
else:
return About.as_view()(request)
diff --git a/templates/admin/domain_edit.html b/templates/admin/domain_edit.html
index d030370..f2bdadc 100644
--- a/templates/admin/domain_edit.html
+++ b/templates/admin/domain_edit.html
@@ -21,6 +21,7 @@
{% include "forms/_field.html" with field=form.site_name %}
{% include "forms/_field.html" with field=form.site_icon %}
{% include "forms/_field.html" with field=form.hide_login %}
+ {% include "forms/_field.html" with field=form.single_user %}
{% include "forms/_field.html" with field=form.custom_css %}