Skip to content

janus-bastion/janus-frontend

Janus frontend

Janus Bastion Logo

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
@nathanmartel21


Sponsor nathanmartel21
@xeylou
@xeylou


Sponsor xeylou
@Djegger
@Djegger


Sponsor Djegger
@Warsgo
@Warsgo


Sponsor Warsgo

Contents

Features

  • 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.

Requirements

  • HTML5

  • CSS3

  • PHP-FPM

  • Nginx

  • MySQLI

  • Chart JS

API

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.

Authentication

All API endpoints require HTTP Basic Authentication with a valid username and password.

  • Only users with admin privileges (is_admin set 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 Forbidden status.

Example usage with curl :

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.

Notes

  • This frontend is designed to be lightweight and easily deployable inside containerized environments or directly on a server.

License

This project is licensed under the GNU General Public License v3.0 GPL-3.0.
See the LICENSE file for more details.

About

Web-based user interface for the Janus platform

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •