Debian Codegraph @

docs/Demo.md

raw
1 # Demo
2
3 This document provides a brief overview of the demo for the `openvpn-auth-oauth2` project.
4
5 ## Prerequisites
6
7 Before you can run the demo, you need to have Docker and Docker Compose installed on your system. If you haven't done so,
8 please follow the instructions in the Docker [Installation Guide](https://docs.docker.com/get-docker/) and
9 Docker Compose [Installation Guide](https://docs.docker.com/compose/install/).
10
11 ## Setting up the Environment
12
13 The demo uses Docker Compose to set up the necessary environment. This includes the `openvpn-auth-oauth2` application,
14 a Keycloak server for authentication, and an OpenVPN server.
15
16 The configuration for this environment is provided in the `docker-compose.yaml` file.
17 This file includes the necessary services, networks, and volumes to run the demo.
18
19 ## Running the Demo
20
21 To run the demo, follow these steps:
22
23 1. Download the demo from the [GitHub repository](https://download-directory.github.io/?url=https%3A%2F%2Fgithub.com%2Fjkroepke%2Fopenvpn-auth-oauth2%2Ftree%2Fmain%2Fdocs%2Fdemo).
24 2. Extract the downloaded archive to a directory on your system.
25 3. Navigate to the directory where the `docker-compose.yaml` file is located.
26 4. Run the following command to start the Docker Compose environment:
27
28 ```bash
29 docker compose up
30 ```
31 This command will start all the necessary services. It may take a few minutes for all services to start and initialize.
32
33 5. After all services have started, a client configuration for OpenVPN will be created in the `config/client/` directory.
34 This configuration can be imported into any OpenVPN client.
35 Viscosity may not work here, because the client block local network access.
36 6. Import the client configuration into your OpenVPN client.
37 7. Connect to the OpenVPN server using the demo user credentials (username: `demo`, password: `demo123`).
38
39 After connecting, you should be able to see the `openvpn-auth-oauth2` application in action.
40
41 > [!WARNING]
42 > This environment contains demonstration credentials and is not suitable for
43 > production use.
44
45 ## Accessing the Services
46
47 The demo environment includes the following services:
48
49 - `openvpn-auth-oauth2` application: [http://localhost:9000](http://localhost:9000)
50 - Keycloak server: [http://localhost:8080](http://localhost:8080)
51 - OpenVPN server: localhost:1194
52
53 ### Keycloak Admin Console
54
55 To access the Keycloak Admin Console, navigate to [http://localhost:8080/](http://localhost:8080/).
56 You can log in using the following credentials:
57
58 - Username: `admin`
59 - Password: `insecure`
60
61 ## Stopping the Demo
62
63 To stop the demo, press `Ctrl+C` in the terminal where the Docker Compose environment is running.
64 This will stop all the services and clean up the environment.
65
66 ## Cleaning Up
67
68 If you want to remove all the services and clean up the environment, run the following command:
69
70 ```bash
71 docker compose down -v
72 ```