generated from bcgov/quickstart-openshift
-
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.
* adding airbyte containers * new file: airbyte-web/default.conf.template --------- Co-authored-by: Derek Roberts <derek.roberts@gmail.com>
- Loading branch information
1 parent
a127f1b
commit 8f2ed9d
Showing
4 changed files
with
85 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM airbyte/webapp:0.50.17 | ||
|
||
EXPOSE 8080 | ||
|
||
COPY default.conf.template /etc/nginx/templates/default.conf.template |
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 |
---|---|---|
@@ -0,0 +1,77 @@ | ||
upstream api-server { | ||
server $INTERNAL_API_HOST; | ||
} | ||
|
||
upstream connector-builder-server { | ||
server $CONNECTOR_BUILDER_API_HOST; | ||
} | ||
|
||
upstream keycloak { | ||
server $KEYCLOAK_INTERNAL_HOST; | ||
} | ||
|
||
server { | ||
listen 8080; | ||
listen [::]:8080; | ||
server_name localhost; | ||
|
||
add_header Content-Security-Policy "script-src * 'unsafe-inline'; worker-src 'self' blob:;"; | ||
|
||
location / { | ||
root /usr/share/nginx/html; | ||
|
||
location ~ ^/docs/.* { | ||
try_files $uri $uri/ =404; | ||
} | ||
|
||
location ~ ^/(?!(assets/.*)) { | ||
try_files $uri $uri/ /index.html; | ||
} | ||
|
||
# (Developer Note): Please only add new properties to this, if they really need to be configurable | ||
# by a user at runtime i.e. without rebuilding the docker images. General webapp config | ||
# belongs in an environment file. | ||
sub_filter </head> | ||
'<script data-script="config-overwrites"> | ||
window.TRACKING_STRATEGY = "$TRACKING_STRATEGY"; | ||
</script></head>'; | ||
sub_filter_once on; | ||
} | ||
|
||
error_page 500 502 503 504 /50x.html; | ||
location = /50x.html { | ||
root /usr/share/nginx/html; | ||
} | ||
|
||
location /api/ { | ||
fastcgi_read_timeout 1h; | ||
proxy_read_timeout 1h; | ||
client_max_body_size 200M; | ||
proxy_pass http://api-server/api/; | ||
|
||
# Unset X-Airbyte-Auth header so that it cannot be used by external requests for authentication | ||
proxy_set_header X-Airbyte-Auth ""; | ||
} | ||
|
||
location /connector-builder-api/ { | ||
fastcgi_read_timeout 1h; | ||
proxy_read_timeout 1h; | ||
client_max_body_size 200M; | ||
proxy_pass http://connector-builder-server/; | ||
} | ||
|
||
location /auth/ { | ||
# Block access to anything not under /auth/realms or /auth/resources | ||
location ~ "/auth/(?!(realms|resources).*)" { | ||
return 404; | ||
} | ||
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-Proto $scheme; | ||
proxy_hide_header Content-Security-Policy; | ||
proxy_pass http://keycloak/auth/; | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM airbyte/worker:0.50.17 | ||
|
||
COPY io.airbyte-airbyte-workers-0.50.17.jar /app/airbyte-app/lib/io.airbyte-airbyte-workers-0.50.17.jar |
Binary file not shown.