A web application for managing and monitoring the reverse SSH tunnels.
-
Copy the
.env.example
to.env
and change the environment variables. -
Generate keys for SSH server.
./telepy.sh keygen
- Build and run the Docker container.
docker-compose up
- (Optional) Create a superuser for Django admin.
Be aware that the first user created will be the superuser whatever the method you use. See this function for more details. So, if you want to login with Google account, just visit the login page and login with Google account.
You need to check the script ./dev-create-superuser.sh
and change the username and password if you want.
./telepy.sh create-superuser
- Go to
http://localhost:<YOUR_WEB_SERVER_PORT>/login
, it will show the login page.
If you want to see the API documentation, you need to login first.
-
Go to
http://localhost:<YOUR_WEB_SERVER_PORT>/api/__hidden_admin/
and login with the superuser. -
Go to
http//localhost:<YOUR_WEB_SERVER_PORT>/api/__hidden_swagger
and you will see the Swagger.
There are some scripts in the dev-scripts
directory.
You can just use ./telepy.sh
to run the scripts.
Usage: ./telepy.sh sub-command [args]
Sub-commands:
keygen: Generate SSH keys for Telepy service.
create-superuser: Create an admin account for Telepy management.
shell: Create a shell to run arbitrary command.
ipython: Create a shell to run ipython.
supervisorctl: Attach to supervisor control shell.
ssh-shell: Similar to 'shell', but for ssh container.
migration: Run migration process.
backend-debug: Recreate and attach to backend container.
collect-static: Collect static files to increase rendering speed.
django-startapp: Create a new Django app.
Nat Lee |
H. Alice |
Boris Lok |