Skip to content

Service URLs

Reference for URLs and ports used by JournalPHP.

Base URL for OAuth callbacks and webhooks: {APP_URL} (the APP_URL value in .env).

Application

ServicePath / URL
Home / feed/ or /{feed}/{filter} (popular, new, my)
News feed/news
Search and discovery/discovery, /discovery/blogs, /discovery/topics
User profile/{slug}
User post/{slug}/{postSlug}
Notifications (page)/{slug}/notifications
Drafts/{slug}/drafts
Communities/topics, /topics/top
Private messages/m
Bookmarks/bookmarks, /bookmarks/posts, /bookmarks/comments
Settings/settings (requires authentication)
Custom pages/p/{slug}

Authentication

Login and registration use a modal on the home page. GET requests to /login and /register redirect to /?modal=auth.

ActionMethodURL
Auth modalGET/?modal=auth
LoginPOST/login
RegisterPOST/register
LogoutPOST/logout
Password reset (request)POST/password/email
Password reset (set)POST/password/reset
OAuth (login)POST/oauth/{driver}
OAuth (callback)GET/oauth/{driver}/callback
One Tap (Yandex, token page)GET/one-tap/yandex/token
One Tap (authenticate)POST/one-tap/{provider}

Administration

ServiceURL
Admin Panel/admin-panel
Horizon (queues)/horizon
Log Viewer/log-viewer

Access to Horizon and Log Viewer is configured in Admin Panel → System → Access (/admin-panel/system/access) — horizonAdmins and logViewerAdmins lists.

Local Environment

ServiceURLPort
Applicationhttp://journalphp.test80
Adminer (DB)http://adminer.journalphp.test80
Reverb (WebSocket)ws://journalphp.test:90019001
Vite dev serverhttp://localhost:51735173

OAuth Callback URI

When registering OAuth applications with providers, set the Redirect URI:

ProviderCallback URI
Google{APP_URL}/oauth/google/callback
Yandex{APP_URL}/oauth/yandex/callback
GitHub{APP_URL}/oauth/github/callback
Facebook{APP_URL}/oauth/facebook/callback
VKontakte{APP_URL}/oauth/vkontakte/callback
Apple{APP_URL}/oauth/apple/callback

For One Tap (Google, Yandex), separate Redirect URLs are shown in the admin panel.

OAuth Client ID and secrets are configured in Admin Panel → Authentication (/admin-panel/settings/auth).

Payment Webhooks

ProviderWebhook URL
YooKassa{APP_URL}/payments/yookassa/result
T-Bank{APP_URL}/payments/tbank/result

SEO and Sitemaps

ResourceURL
XML Sitemap (index)/sitemap.xml
HTML sitemap/sitemap
Profiles/communities map/sitemap/standard.xml
Tags map/sitemap/tags{page}.xml (e.g. /sitemap/tags1.xml)
Weekly posts map/sitemap/year-{date}.xml (e.g. /sitemap/year-2024-01-01.xml)

HTML versions of the same maps are available without the .xml extension: /sitemap/standard, /sitemap/tags{page}, /sitemap/year-{date}.

Released under the MIT License.