2018-06-09 17:29:25 +02:00
|
|
|
halcyon.domain.tld {
|
|
|
|
tls user@domain.tld
|
|
|
|
log /var/log/caddy/halcyon.log
|
|
|
|
fastcgi / 127.0.0.1:9000 php
|
|
|
|
root /opt/halcyon
|
|
|
|
status 404 {
|
|
|
|
/config.ini
|
|
|
|
/.bat
|
|
|
|
/.git
|
|
|
|
/.ini
|
|
|
|
/.sh
|
|
|
|
/.svn
|
|
|
|
/.txt
|
|
|
|
/.tpl
|
|
|
|
/.xml
|
|
|
|
}
|
|
|
|
rewrite {
|
|
|
|
r ^/home/?$
|
|
|
|
to /
|
|
|
|
}
|
|
|
|
rewrite {
|
|
|
|
r ^/login/?$
|
|
|
|
to /login/login.php
|
|
|
|
}
|
|
|
|
rewrite {
|
|
|
|
r ^/auth/?$
|
|
|
|
to /login/auth.php
|
|
|
|
}
|
|
|
|
rewrite {
|
|
|
|
r ^/logout/?$
|
|
|
|
to /login/logout.php
|
|
|
|
}
|
|
|
|
rewrite {
|
|
|
|
r ^/terms/?$
|
|
|
|
to /login/terms.php
|
|
|
|
}
|
|
|
|
rewrite {
|
2018-07-25 17:31:54 +02:00
|
|
|
r ^/privacy/?$
|
|
|
|
to /login/privacy.php
|
|
|
|
}
|
|
|
|
rewrite {
|
|
|
|
r ^/imprint/?$
|
|
|
|
to /login/imprint.php
|
|
|
|
}
|
|
|
|
rewrite {
|
2018-06-09 17:29:25 +02:00
|
|
|
r ^/local/?$
|
|
|
|
to /local.php
|
|
|
|
}
|
|
|
|
rewrite {
|
|
|
|
r ^/federated/?$
|
|
|
|
to /federated.php
|
|
|
|
}
|
|
|
|
rewrite {
|
|
|
|
r ^/notifications/?$
|
|
|
|
to /notifications.php
|
|
|
|
}
|
|
|
|
rewrite {
|
2018-06-23 16:58:06 +02:00
|
|
|
r ^/whotofollow/?$
|
|
|
|
to /who_to_follow.php
|
|
|
|
}
|
|
|
|
rewrite {
|
2018-09-23 16:14:28 +02:00
|
|
|
r ^/direct/?$
|
|
|
|
to direct.php
|
|
|
|
}
|
|
|
|
rewrite {
|
2018-12-02 15:01:21 +01:00
|
|
|
r ^/instance/?$
|
|
|
|
to instance.php
|
|
|
|
}
|
|
|
|
rewrite {
|
2018-09-23 16:14:28 +02:00
|
|
|
r ^/lists/?$
|
|
|
|
to lists.php
|
|
|
|
}
|
|
|
|
rewrite{
|
|
|
|
r ^/lists/(\d+)/?$
|
|
|
|
to lists_view.php?id={1}
|
|
|
|
}
|
|
|
|
rewrite{
|
|
|
|
r ^/lists/(\d+)/add/?$
|
|
|
|
to lists_add.php?id={1}
|
|
|
|
}
|
|
|
|
rewrite {
|
2018-06-09 17:29:25 +02:00
|
|
|
r ^/search/?$
|
|
|
|
to /search_hash_tag.php
|
|
|
|
}
|
|
|
|
rewrite {
|
|
|
|
r ^/search/users/?$
|
|
|
|
to /search_user.php
|
|
|
|
}
|
|
|
|
rewrite {
|
|
|
|
r ^/settings/?$
|
|
|
|
to /settings_general.php
|
|
|
|
}
|
|
|
|
rewrite {
|
|
|
|
r ^/settings/profile/?$
|
|
|
|
to /settings_profile.php
|
|
|
|
}
|
|
|
|
rewrite {
|
|
|
|
r ^/settings/appearance/?$
|
|
|
|
to /settings_appearance.php
|
|
|
|
}
|
|
|
|
rewrite {
|
2018-11-25 19:14:16 +01:00
|
|
|
r ^/settings/filters/?$
|
|
|
|
to /settings_filters.php
|
|
|
|
}
|
|
|
|
rewrite {
|
2018-06-09 17:29:25 +02:00
|
|
|
r ^/@(.+)@(.+).([a-z]+)/?$
|
|
|
|
to /user.php?user=@{1}@{2}.{3}
|
|
|
|
}
|
|
|
|
rewrite {
|
|
|
|
r ^/@(.+)@(.+).([a-z]+)/status/(.+?)?$
|
|
|
|
to /user.php?user=@{1}@{2}.{3}&status={4}
|
|
|
|
}
|
|
|
|
rewrite {
|
|
|
|
r ^/@(.+)@(.+).([a-z]+)/media/?$
|
|
|
|
to /user_only_media.php?user=@{1}@{2}.{3}
|
|
|
|
}
|
|
|
|
rewrite {
|
|
|
|
r ^/@(.+)@(.+).([a-z]+)/with_replies/?$
|
|
|
|
to /user_include_replies.php?user=@{1}@{2}.{3}
|
|
|
|
}
|
|
|
|
rewrite {
|
|
|
|
r ^/@(.+)@(.+).([a-z]+)/followers/?$
|
|
|
|
to /user_followers.php?user=@{1}@{2}.{3}
|
|
|
|
}
|
|
|
|
rewrite {
|
|
|
|
r ^/@(.+)@(.+).([a-z]+)/following/?$
|
|
|
|
to /user_following.php?user=@{1}@{2}.{3}
|
|
|
|
}
|
|
|
|
rewrite {
|
|
|
|
r ^/@(.+)@(.+).([a-z]+)/favourites/?$
|
|
|
|
to /user_favorite.php?user=@{1}@{2}.{3}
|
|
|
|
}
|
|
|
|
rewrite {
|
|
|
|
r ^/avatars/original/missing.png$
|
|
|
|
to /assets/images/missing.png
|
|
|
|
}
|
|
|
|
rewrite {
|
|
|
|
r ^/headers/original/missing.png$
|
|
|
|
to /assets/images/missing_header.png
|
|
|
|
}
|
|
|
|
rewrite {
|
|
|
|
r ^/404/?$
|
|
|
|
to /404.php
|
|
|
|
}
|
|
|
|
}
|