Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: fetch config and store it to redux #147

Merged
merged 1 commit into from
Jan 23, 2023
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
6 changes: 0 additions & 6 deletions .env.dev

This file was deleted.

9 changes: 9 additions & 0 deletions config.dev.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"apiBasePath": "http://localhost:8000",
"oidc": {
"discoveryUrl": "http://localhost:8080/auth/realms/tdp_server/.well-known/openid-configuration",
"redirectUri": "http://localhost:3000/",
"clientId": "tdp_server",
"scope": "openid tdp_server:read tdp_server:write tdp_server:execute"
}
}
8 changes: 6 additions & 2 deletions env/export/templates/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@ server {
try_files $uri $uri.html $uri/ =404;
}

#error_page 404 /404.html;
location /config.json {
root /usr/share/nginx/html;
index config.json;

try_files $uri $uri/ =404;
}

# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
Expand Down
205 changes: 176 additions & 29 deletions package-lock.json

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

Loading