Skip to content

Commit

Permalink
added admin portal for core
Browse files Browse the repository at this point in the history
  • Loading branch information
holashchand committed Sep 28, 2023
1 parent af9ddbf commit 36af4c8
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -352,3 +352,10 @@ services:
test:
wget --no-verbose --tries=1 --spider http://localhost:8123/ping || exit
1
admin_portal:
image: ghcr.io/sunbird-rc/sunbird-rc-admin-portal:${ADMIN_RELEASE_VERSION-main}
ports:
- '8085:8085'
volumes:
- ./imports/admin-portal/nginx.conf:/etc/nginx/conf.d/default.conf
- ./imports/admin-portal/config.json:/usr/share/nginx/html/admin/assets/config/config.json
61 changes: 61 additions & 0 deletions imports/admin-portal/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"environment": "development",
"keycloak": {
"url": "/auth",
"clientId": "admin-portal",
"realm": "sunbird-rc"
},
"configFolder": "assets/config",
"referanceSchema" : "assets/config",
"languageFolder": "assets/i18n",
"title": "Admin Portal",
"baseUrl": "/registry/api/v1",
"schemaUrl": "/registry/api/docs/swagger.json",
"footerText": "Admin Portal",
"languages": [
"en",
"hi"
],
"appType": "attestation",
"default_theme": {
"logoPath": "https://raw.githubusercontent.com/Sunbird-RC/Admin-Portal/main/src/assets/images/admin_portal.svg",
"primaryColorGreen":"#0098AB",
"primaryColorBlue":"#1987B6",
"primaryColorGrey":"#1B2124",
"primaryColorBlack":"#000000",
"greyColorOne":"#8D9091",
"greyColorTwo":"#CCCCCC",
"greyColorThree":"#EFEFEF",
"greyColorFour":"#F6F8FC",
"whiteColor":"#FFFFFF",
"secondaryColorNavy":"#191489",
"secondaryColorRed":"#C5292A",
"secondaryColorYellow":"#FFD965",
"secondaryColorLightBlue":"#A6D4FF",
"secondaryColorGreen":"#22B02E",
"cardColor":"#FFFFFF",
"textColor":"#000000",
"lightColorbtn":"#E8F3F8"

},
"dark_theme": {
"logoPath": "https://raw.githubusercontent.com/Sunbird-RC/Admin-Portal/main/src/assets/images/admin_portal.svg",
"primaryColorGreen":"#0098AB",
"primaryColorBlue":"#5BB0FF",
"primaryColorGrey":"#1B2124",
"primaryColorBlack":"#000000",
"greyColorOne":"#D9D9D9",
"greyColorTwo":"#CCCCCC",
"greyColorThree":"#393939",
"greyColorFour":"#090909",
"whiteColor":"#090909",
"secondaryColorNavy":"#191489",
"secondaryColorRed":"#C5292A",
"secondaryColorYellow":"#FFD965",
"secondaryColorLightBlue":"#A6D4FF",
"secondaryColorGreen":"#22B02E",
"cardColor":"#323232",
"textColor":"#EFEFEF",
"lightColorbtn":"#393939"
}
}
27 changes: 27 additions & 0 deletions imports/admin-portal/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
server {
listen 8085;

location / {
root /usr/share/nginx/html/admin;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
location /registry/ {
proxy_pass http://registry:8081/;
}
location /auth/ {
proxy_pass http://keycloak:8080/auth/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-Proto $scheme;
}
error_page 500 502 503 504 /50x.html;

location = /50x.html {
root /usr/share/nginx/html;
}
}

0 comments on commit 36af4c8

Please sign in to comment.