generated from EOEPCA/um-buildingblock-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Eoepca 910 um keycloak develop an identity api based on keycloak api (#9) * feat: keycloak_client methods added for identity_api * feat: added scopes crud (for future?) and fixes on permissions and policies cruds * Merge (#10) * Update docker compose * Fix keycloak client constructor * Update README.md * Update docker compose * Add nginx config * Change nginx * Add realm admin role * Remove auth keycloak client (#11) * Add dummy service demo * Add dummy-service nginx * Update demos * Update nginx configs * Update gatekeeper config * feat: added register_general_policy function * fix: small fix in register_general_policy * fix: one more fix * feat: added delete permissions * feat: added create client function * Add gatekeeper cookie name --------- Co-authored-by: flaviorosadme <[email protected]> Co-authored-by: flaviorosadme <[email protected]>
- Loading branch information
1 parent
2c8b779
commit fc0c5d7
Showing
6 changed files
with
55 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,23 @@ | ||
# upstream docker-resource-server-gatekeeper { | ||
# server resource-server-gatekeeper; | ||
# } | ||
# | ||
# upstream docker-echo-gatekeeper { | ||
# server echo-gatekeeper; | ||
# } | ||
|
||
server { | ||
|
||
#listen 443 default ssl; | ||
listen 80; | ||
server_name gatekeeper; | ||
#ssl_certificate /etc/letsencrypt/live/auth.proxy.develop.eoepca.org/fullchain.pem; | ||
#ssl_certificate_key /etc/letsencrypt/live/auth.proxy.develop.eoepca.org/privkey.pem; | ||
add_header Strict-Transport-Security max-age=2592000; | ||
resolver 127.0.0.11; | ||
#listen 443 default ssl; | ||
listen 80; | ||
server_name gatekeeper; | ||
add_header Strict-Transport-Security max-age=2592000; | ||
resolver 127.0.0.11; | ||
proxy_busy_buffers_size 64k; | ||
proxy_buffers 8 32k; | ||
proxy_buffer_size 32k; | ||
|
||
|
||
location / { | ||
#proxy_pass http://echo-gatekeeper:3000; | ||
proxy_pass http://resource-server-gatekeeper:3001; | ||
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-Scheme $scheme; | ||
proxy_set_header X-Forwarded-Host $host:80; | ||
proxy_set_header X-Forwarded-Port 80; | ||
proxy_set_header X-Forwarded-Server $host; | ||
#proxy_pass http://echo-gatekeeper:3000/$request_uri; | ||
proxy_pass http://resource-server-gatekeeper:3001/$request_uri; | ||
proxy_pass_request_body off; | ||
proxy_set_header Content-Length ""; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_connect_timeout 1; | ||
proxy_read_timeout 30; | ||
proxy_send_timeout 30; | ||
proxy_http_version 1.1; | ||
proxy_set_header X-Forwarded-Host $host; | ||
proxy_set_header X-Forwarded-Method $request_method; | ||
proxy_set_header X-Forwarded-URI $request_uri; | ||
} | ||
|
||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters