The frontend stack of the Janus project serving the web interface, handling database communication, and configuring the Nginx and PHP-FPM environment.
| Author | Author | Author | Author |
|---|---|---|---|
![]() @nathanmartel21 |
![]() @xeylou |
![]() @Djegger |
![]() @Warsgo |
janus-conf-nginx/: Nginx configuration for PHP-FPM integration.janus-db-connect/: Database connection layer using mysqli.janus-website/: Main website files using HTML5, CSS3, PHP, and Chart.js.
- Structured modular frontend for the Janus ecosystem.
- PHP-FPM support for dynamic server-side rendering.
- Nginx configuration ready for production and development.
- mysqli-based secure DB communication.
- Built-in Chart.js integration for rich data visualization.
This frontend also exposes several API endpoints to retrieve data directly from the backend:
/api/users/count— Returns the total number of users./api/remote_connections/count— Returns the total number of remote connections./api/user/{username}— Returns detailed information about a specific user by username.
All API endpoints require HTTP Basic Authentication with a valid username and password.
- Only users with admin privileges (
is_adminset to true in the database) are authorized to access the APIs. - If authentication fails, or if the user is not an admin, the API will respond with a
403 Forbiddenstatus.
curl -k -u admin_username:admin_password https://HAPROXY_IP/api/users/count
curl -k -u admin_username:admin_password https://HAPROXY_IP/api/connections/count
curl -k -u admin_username:admin_password https://HAPROXY_IP/api/user/{user}Replace admin_username and admin_password with the credentials of a valid admin user.
- This frontend is designed to be lightweight and easily deployable inside containerized environments or directly on a server.
This project is licensed under the GNU General Public License v3.0 GPL-3.0.
See the LICENSE file for more details.



