-
-
Notifications
You must be signed in to change notification settings - Fork 27
Demo
This document provides a brief overview of the demo for the openvpn-auth-oauth2
project.
Before you can run the demo, you need to have Docker and Docker Compose installed on your system. If you haven't done so, please follow the instructions in the Docker Installation Guide and Docker Compose Installation Guide.
The demo uses Docker Compose to set up the necessary environment. This includes the openvpn-auth-oauth2
application,
a Keycloak server for authentication, and an OpenVPN server.
The configuration for this environment is provided in the docker-compose.yaml
file.
This file includes the necessary services, networks, and volumes to run the demo.
To run the demo, follow these steps:
-
Download the demo from the GitHub repository.
-
Extract the downloaded archive to a directory on your system.
-
Navigate to the directory where the
docker-compose.yaml
file is located. -
Run the following command to start the Docker Compose environment:
docker compose up
This command will start all the necessary services. It may take a few minutes for all services to start and initialize.
-
After all services have started, a client configuration for OpenVPN will be created in the
config/client/
directory. This configuration can be imported into any OpenVPN client. Viscosity may not work here, because the client block local network access. -
Import the client configuration into your OpenVPN client.
-
Connect to the OpenVPN server using the demo user credentials (username:
demo
, password:demo123
).
After connecting, you should be able to see the openvpn-auth-oauth2
application in action.
Please note that this is a demo setup and is not suitable for production use.
The demo environment includes the following services:
-
openvpn-auth-oauth2
application: http://localhost:9000 - Keycloak server: http://localhost:8080
- OpenVPN server: localhost:1194
To access the Keycloak Admin Console, navigate to http://localhost:8080/. You can log in using the following credentials:
- Username:
admin
- Password:
insecure
To stop the demo, press Ctrl+C
in the terminal where the Docker Compose environment is running.
This will stop all the services and clean up the environment.
If you want to remove all the services and clean up the environment, run the following command:
docker compose down -v
This wiki is synced with the docs
folder from the code repository! To improve the wiki, create a pull request against the code repository with the suggested changes.