Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DockerfileFrontend-dev
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ COPY frontend frontend
WORKDIR frontend
RUN npm install

EXPOSE 3000
EXPOSE 3001

# Start the app in development mode
ENTRYPOINT ["npm", "run", "dev"]
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ source setenv.sh
cd UnityAuth
./gradlew run
```
This starts the UnityAuth API server on http://localhost:9090 if the `MICRONAUT_ENVIRONMENTS`
environment variable contains `local`.

Run the UnityAuth UI in another terminal windows:
```shell
Expand All @@ -29,6 +31,7 @@ cd frontend
npm install
npm run dev
```
This starts the frontend on http://localhost:3001.

### Docker Environment
To launch the auth service, you can use the docker compose from the project root:
Expand All @@ -41,7 +44,7 @@ This will start containers for the UnityAuth API, UI and database server with se
names `unity-auth-api`, `unity-auth-ui`, and `unity-auth-db`, respectively.

- **UnityAuth API** on http://localhost:9090 (inside Docker http://unity-auth-api:9090)
- **UnityAuth UI** on http://localhost:3001 (inside Docker http://unity-auth-ui:3000)
- **UnityAuth UI** on http://localhost:3001 (inside Docker http://unity-auth-ui:3001)
- **MySQL Database** is open on port `13306` in `localhost` (within Docker is port `3306`
with host name `unity-auth-db`)

Expand Down Expand Up @@ -72,7 +75,8 @@ This repository contains three main subprojects:

### 1. UnityAuth (Main Service)

**Location:** `/UnityAuth/`
**Location:** `/UnityAuth`

**Technology:** Java 21 + Micronaut Framework

The core authentication service that provides:
Expand All @@ -94,7 +98,8 @@ The core authentication service that provides:

### 2. AuthGenHash (Utility Tool)

**Location:** `/AuthGenHash/`
**Location:** `/AuthGenHash`

**Technology:** Java 17 + Micronaut + PicoCLI

A command-line utility for generating secure password hashes compatible with the UnityAuth service.
Expand All @@ -107,7 +112,8 @@ A command-line utility for generating secure password hashes compatible with the

### 3. Frontend (Web Administration Interface)

**Location:** `/frontend/`
**Location:** `/frontend`

**Technology:** SvelteKit + TypeScript + Tailwind CSS

A modern web application providing administrative interface for the UnityAuth service.
Expand Down
1 change: 1 addition & 0 deletions UnityAuth/src/main/resources/application-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ micronaut:
- localhost:3000
- http://127.0.0.1:3000
- http://libre311-ui:3000
- http://libre311-ui-dev:3000
- http://localhost:3001
- localhost:3001
- http://127.0.0.1:3001
Expand Down
6 changes: 5 additions & 1 deletion UnityAuth/src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@ micronaut:
- http://localhost:3000
- localhost:3000
- http://127.0.0.1:3000
- http://libre311-ui:3000
- http://libre311-ui-dev:3000
- http://localhost:3001
- localhost:3001
- http://127.0.0.1:3001
- http://unity-auth-ui:3001
- http://unity-auth-ui-dev:3001
localhost-pass-through: true
port: 8081
port: 9090
security:
authentication: bearer
datasources:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ services:
environment:
VITE_BACKEND_URL: http://unity-auth-api:9090
ports:
- "3001:3000"
- "3001:3001"

## UI Service - Production environment
## Start by: docker compose -f docker-compose.local.yml --profile prod up
Expand Down
2 changes: 1 addition & 1 deletion frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/setenv.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export VITE_BACKEND_URL=http://127.0.0.1:8081
export VITE_BACKEND_URL=http://127.0.0.1:9090
2 changes: 1 addition & 1 deletion frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default defineConfig({
include: ['src/**/*.{test,spec}.{js,ts}']
},
server: {
port: 3000,
port: 3001,
host: true
}
});