Merge pull request #224 from SELab-2/main
release 0.2.0: Merge `main` into `dev`
This commit is contained in:
		
						commit
						509dd6bfab
					
				
					 14 changed files with 57 additions and 8799 deletions
				
			
		
							
								
								
									
										4
									
								
								.github/workflows/backend-testing.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/backend-testing.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -9,13 +9,13 @@ name: Backend Testing | ||||||
| #   - a draft PR to "dev" with backend js/ts files is marked as ready for review | #   - a draft PR to "dev" with backend js/ts files is marked as ready for review | ||||||
| on: | on: | ||||||
|   push: |   push: | ||||||
|     branches: [ "dev" ] |     branches: [ "dev", "main" ] | ||||||
|     paths: |     paths: | ||||||
|       - 'backend/src/**.[jt]s' |       - 'backend/src/**.[jt]s' | ||||||
|       - 'backend/tests/**.[jt]s' |       - 'backend/tests/**.[jt]s' | ||||||
|       - 'backend/vitest.config.ts' |       - 'backend/vitest.config.ts' | ||||||
|   pull_request: |   pull_request: | ||||||
|     branches: [ "dev" ] |     branches: [ "dev", "main" ] | ||||||
|     types: ["synchronize", "ready_for_review", "opened", "reopened"] |     types: ["synchronize", "ready_for_review", "opened", "reopened"] | ||||||
|     paths: |     paths: | ||||||
|       - 'backend/src/**.[jt]s' |       - 'backend/src/**.[jt]s' | ||||||
|  |  | ||||||
							
								
								
									
										4
									
								
								.github/workflows/deployment.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/deployment.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -15,8 +15,8 @@ jobs: | ||||||
|         uses: actions/checkout@v4 |         uses: actions/checkout@v4 | ||||||
|       - |       - | ||||||
|         name: Copy environment variables to correct file |         name: Copy environment variables to correct file | ||||||
|         run: cp /home/dev/.backend.env backend/.env |         run: cp /home/dev/.backend.env backend/.env && cp /home/dev/.idp.env config/idp/.env | ||||||
|       - |       - | ||||||
|         name: Start docker |         name: Start docker | ||||||
|         run: docker compose -f compose.production.yml up --build -d |         run: docker compose -f compose.yml -f compose.production.yml up --build -d | ||||||
|          |          | ||||||
							
								
								
									
										4
									
								
								.github/workflows/frontend-testing.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/frontend-testing.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -9,7 +9,7 @@ name: Frontend Testing | ||||||
| #   - a draft PR to "dev" with frontend js/ts/vue/css files is marked as ready for review | #   - a draft PR to "dev" with frontend js/ts/vue/css files is marked as ready for review | ||||||
| on: | on: | ||||||
|     push: |     push: | ||||||
|       branches: [ "dev" ] |       branches: [ "dev", "main" ] | ||||||
|       paths: |       paths: | ||||||
|         - 'frontend/src/**.[jt]s' |         - 'frontend/src/**.[jt]s' | ||||||
|         - 'frontend/src/**.vue' |         - 'frontend/src/**.vue' | ||||||
|  | @ -20,7 +20,7 @@ on: | ||||||
|         - 'frontend/vitest.config.ts' |         - 'frontend/vitest.config.ts' | ||||||
|         - 'frontend/playwright.config.ts' |         - 'frontend/playwright.config.ts' | ||||||
|     pull_request: |     pull_request: | ||||||
|       branches: [ "dev" ] |       branches: [ "dev", "main" ] | ||||||
|       types: ["synchronize", "ready_for_review", "opened", "reopened"] |       types: ["synchronize", "ready_for_review", "opened", "reopened"] | ||||||
|       paths: |       paths: | ||||||
|         - 'frontend/src/**.[jt]s' |         - 'frontend/src/**.[jt]s' | ||||||
|  |  | ||||||
							
								
								
									
										6
									
								
								.github/workflows/lint-action.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/workflows/lint-action.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -4,13 +4,11 @@ on: | ||||||
|     # Trigger the workflow on push or pull request, |     # Trigger the workflow on push or pull request, | ||||||
|     # but only for the main branch |     # but only for the main branch | ||||||
|     push: |     push: | ||||||
|         branches: |         branches: [ "dev", "main" ] | ||||||
|             - dev |  | ||||||
|     # Replace pull_request with pull_request_target if you |     # Replace pull_request with pull_request_target if you | ||||||
|     # plan to use this action with forks, see the Limitations section |     # plan to use this action with forks, see the Limitations section | ||||||
|     pull_request: |     pull_request: | ||||||
|         branches: |         branches: [ "dev", "main" ] | ||||||
|             - dev |  | ||||||
|         types: ["synchronize", "ready_for_review", "opened", "reopened"] |         types: ["synchronize", "ready_for_review", "opened", "reopened"] | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -1,6 +1,6 @@ | ||||||
| { | { | ||||||
|     "name": "@dwengo-1/backend", |     "name": "@dwengo-1/backend", | ||||||
|     "version": "0.1.1", |     "version": "0.2.0", | ||||||
|     "description": "Backend for Dwengo-1", |     "description": "Backend for Dwengo-1", | ||||||
|     "private": true, |     "private": true, | ||||||
|     "type": "module", |     "type": "module", | ||||||
|  |  | ||||||
|  | @ -1,6 +1,6 @@ | ||||||
| { | { | ||||||
|     "name": "@dwengo-1/common", |     "name": "@dwengo-1/common", | ||||||
|     "version": "0.1.1", |     "version": "0.2.0", | ||||||
|     "description": "Common types and utilities for Dwengo-1", |     "description": "Common types and utilities for Dwengo-1", | ||||||
|     "private": true, |     "private": true, | ||||||
|     "type": "module", |     "type": "module", | ||||||
|  |  | ||||||
|  | @ -42,18 +42,37 @@ services: | ||||||
|         networks: |         networks: | ||||||
|             - dwengo-1 |             - dwengo-1 | ||||||
| 
 | 
 | ||||||
|  |     keycloak-db: | ||||||
|  |         image: postgres:latest | ||||||
|  |         ports: | ||||||
|  |             - '5442:5432' # Port number 10 higher than normal postgres ports | ||||||
|  |         restart: unless-stopped | ||||||
|  |         volumes: | ||||||
|  |             - dwengo_postgres_keycloak:/var/lib/postgresql/keycloak | ||||||
|  |         environment: | ||||||
|  |             POSTGRES_USER: keycloak | ||||||
|  |             POSTGRES_PASSWORD: ChangeMe | ||||||
|  |             POSTGRES_DB: keycloak | ||||||
|  |         networks: | ||||||
|  |             - dwengo-1 | ||||||
|  | 
 | ||||||
|     idp: |     idp: | ||||||
|         extends: |         extends: | ||||||
|             file: ./compose.yml |             file: ./compose.yml | ||||||
|             service: idp |             service: idp | ||||||
|         # TODO Replace with proper production command |         command: ['start', '--http-port', '7080', '--https-port', '7443', '--import-realm'] | ||||||
|         command: ['start-dev', '--http-port', '7080', '--https-port', '7443', '--import-realm'] |  | ||||||
|         networks: |         networks: | ||||||
|             - dwengo-1 |             - dwengo-1 | ||||||
|         labels: |         labels: | ||||||
|             - 'traefik.enable=true' |             - 'traefik.enable=true' | ||||||
|             - 'traefik.http.routers.idp.rule=PathPrefix(`/idp`)' |             - 'traefik.http.routers.idp.rule=PathPrefix(`/idp`)' | ||||||
|             - 'traefik.http.services.idp.loadbalancer.server.port=7080' |             - 'traefik.http.services.idp.loadbalancer.server.port=7080' | ||||||
|  |             - 'traefik.http.routers.block-admin.rule=PathPrefix(`/idp/admin`)' | ||||||
|  |             - 'traefik.http.routers.block-admin.service=web' | ||||||
|  |         depends_on: | ||||||
|  |             - keycloak-db | ||||||
|  |         volumes: | ||||||
|  |             - /etc/keycloak:/keycloak | ||||||
|         env_file: |         env_file: | ||||||
|             - ./config/idp/.env |             - ./config/idp/.env | ||||||
|         environment: |         environment: | ||||||
|  | @ -62,6 +81,13 @@ services: | ||||||
|             KC_PROXY_HEADERS: 'xforwarded' |             KC_PROXY_HEADERS: 'xforwarded' | ||||||
|             KC_HTTP_ENABLED: 'true' |             KC_HTTP_ENABLED: 'true' | ||||||
|             KC_HTTP_RELATIVE_PATH: '/idp' |             KC_HTTP_RELATIVE_PATH: '/idp' | ||||||
|  |             KC_HTTPS_CERTIFICATE_FILE: '/keycloak/cert.pem' | ||||||
|  |             KC_HTTPS_CERTIFICATE_KEY_FILE: '/keycloak/key.pem' | ||||||
|  |             KC_HTTP_MAX_QUEUED_REQUESTS: 30 # Prevent overload situations by limiting number of requests | ||||||
|  |             KC_DB: 'postgres' | ||||||
|  |             KC_DB_USERNAME: 'keycloak' | ||||||
|  |             KC_DB_PASSWORD: 'ChangeMe' | ||||||
|  |             KC_DB_URL: 'jdbc:postgresql://keycloak-db:5432/keycloak' | ||||||
| 
 | 
 | ||||||
|     reverse-proxy: |     reverse-proxy: | ||||||
|         image: traefik:v3.3 |         image: traefik:v3.3 | ||||||
|  | @ -121,6 +147,7 @@ volumes: | ||||||
|     dwengo_grafana_data: |     dwengo_grafana_data: | ||||||
|     dwengo_letsencrypt: |     dwengo_letsencrypt: | ||||||
|     dwengo_loki_data: |     dwengo_loki_data: | ||||||
|  |     dwengo_postgres_keycloak: | ||||||
| 
 | 
 | ||||||
| networks: | networks: | ||||||
|     dwengo-1: |     dwengo-1: | ||||||
|  |  | ||||||
|  | @ -25,8 +25,6 @@ services: | ||||||
|         restart: unless-stopped |         restart: unless-stopped | ||||||
|         volumes: |         volumes: | ||||||
|             - ./config/idp:/opt/keycloak/data/import |             - ./config/idp:/opt/keycloak/data/import | ||||||
|         depends_on: |  | ||||||
|             - db |  | ||||||
|         environment: |         environment: | ||||||
|             KC_HOSTNAME: localhost |             KC_HOSTNAME: localhost | ||||||
|             KC_HOSTNAME_PORT: 7080 |             KC_HOSTNAME_PORT: 7080 | ||||||
|  |  | ||||||
|  | @ -1,6 +1,6 @@ | ||||||
| { | { | ||||||
|     "name": "dwengo-1-docs", |     "name": "dwengo-1-docs", | ||||||
|     "version": "0.0.1", |     "version": "0.2.0", | ||||||
|     "description": "Documentation for Dwengo-1", |     "description": "Documentation for Dwengo-1", | ||||||
|     "private": true, |     "private": true, | ||||||
|     "scripts": { |     "scripts": { | ||||||
|  |  | ||||||
|  | @ -10,7 +10,7 @@ | ||||||
|             name="viewport" |             name="viewport" | ||||||
|             content="width=device-width, initial-scale=1.0" |             content="width=device-width, initial-scale=1.0" | ||||||
|         /> |         /> | ||||||
|         <title>Vite App</title> |         <title>Dwengo-1</title> | ||||||
|     </head> |     </head> | ||||||
|     <body> |     <body> | ||||||
|         <div id="app"></div> |         <div id="app"></div> | ||||||
|  |  | ||||||
|  | @ -1,6 +1,6 @@ | ||||||
| { | { | ||||||
|     "name": "dwengo-1-frontend", |     "name": "dwengo-1-frontend", | ||||||
|     "version": "0.1.1", |     "version": "0.2.0", | ||||||
|     "description": "Frontend for Dwengo-1", |     "description": "Frontend for Dwengo-1", | ||||||
|     "private": true, |     "private": true, | ||||||
|     "type": "module", |     "type": "module", | ||||||
|  |  | ||||||
										
											Binary file not shown.
										
									
								
							| Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.3 KiB | 
							
								
								
									
										8788
									
								
								package-lock.json
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										8788
									
								
								package-lock.json
									
										
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load diff
											
										
									
								
							|  | @ -1,6 +1,6 @@ | ||||||
| { | { | ||||||
|     "name": "dwengo-1", |     "name": "dwengo-1", | ||||||
|     "version": "0.1.1", |     "version": "0.2.0", | ||||||
|     "description": "Monorepo for Dwengo-1", |     "description": "Monorepo for Dwengo-1", | ||||||
|     "private": true, |     "private": true, | ||||||
|     "type": "module", |     "type": "module", | ||||||
|  | @ -42,8 +42,5 @@ | ||||||
|         "eslint-config-prettier": "^10.0.1", |         "eslint-config-prettier": "^10.0.1", | ||||||
|         "jiti": "^2.4.2", |         "jiti": "^2.4.2", | ||||||
|         "typescript-eslint": "^8.24.1" |         "typescript-eslint": "^8.24.1" | ||||||
|     }, |  | ||||||
|     "dependencies": { |  | ||||||
|         "swagger": "^0.7.5" |  | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 GitHub
							GitHub