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
| Service | Path / 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.
| Action | Method | URL |
|---|---|---|
| Auth modal | GET | /?modal=auth |
| Login | POST | /login |
| Register | POST | /register |
| Logout | POST | /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
| Service | URL |
|---|---|
| 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
| Service | URL | Port |
|---|---|---|
| Application | http://journalphp.test | 80 |
| Adminer (DB) | http://adminer.journalphp.test | 80 |
| Reverb (WebSocket) | ws://journalphp.test:9001 | 9001 |
| Vite dev server | http://localhost:5173 | 5173 |
OAuth Callback URI
When registering OAuth applications with providers, set the Redirect URI:
| Provider | Callback URI |
|---|---|
{APP_URL}/oauth/google/callback | |
| Yandex | {APP_URL}/oauth/yandex/callback |
| GitHub | {APP_URL}/oauth/github/callback |
{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
| Provider | Webhook URL |
|---|---|
| YooKassa | {APP_URL}/payments/yookassa/result |
| T-Bank | {APP_URL}/payments/tbank/result |
SEO and Sitemaps
| Resource | URL |
|---|---|
| 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}.