forked from airbytehq/airbyte-platform
-
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.
Update aircmd and fix testing TODO's (#8315)
- Loading branch information
Conor
committed
Aug 18, 2023
1 parent
46ac990
commit 2bf5f3f
Showing
19 changed files
with
274 additions
and
133 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
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
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,6 +1,7 @@ | ||
plugins { | ||
id "io.airbyte.gradle.jvm" | ||
id "io.airbyte.gradle.docker" | ||
id "io.airbyte.gradle.publish" | ||
} | ||
|
||
airbyte { | ||
|
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,32 @@ | ||
events {} | ||
|
||
http { | ||
server { | ||
listen 8001 default_server; | ||
|
||
location / { | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
client_max_body_size 200M; | ||
|
||
auth_basic "Welcome to Airbyte"; | ||
auth_basic_user_file /etc/nginx/.htpasswd; | ||
|
||
error_page 401 /etc/nginx/401.html; | ||
location ~ (401.html)$ { | ||
alias /etc/nginx/$1; | ||
auth_basic off; | ||
} | ||
|
||
# If no error occurs, proceed to the test block | ||
try_files $uri @testblock; | ||
} | ||
|
||
location @testblock { | ||
# Instead of proxying to the actual service, we simply return a 200 | ||
return 200 "Auth OK\n"; | ||
} | ||
} | ||
} | ||
|
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,32 @@ | ||
events {} | ||
|
||
http { | ||
server { | ||
listen 8000 default_server; | ||
|
||
location / { | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
client_max_body_size 200M; | ||
|
||
auth_basic "Welcome to Airbyte"; | ||
auth_basic_user_file /etc/nginx/.htpasswd; | ||
|
||
error_page 401 /etc/nginx/401.html; | ||
location ~ (401.html)$ { | ||
alias /etc/nginx/$1; | ||
auth_basic off; | ||
} | ||
|
||
# If no error occurs, proceed to the test block | ||
try_files $uri @testblock; | ||
} | ||
|
||
location @testblock { | ||
# Instead of proxying to the actual service, we simply return a 200 | ||
return 200 "Auth OK\n"; | ||
} | ||
} | ||
} | ||
|
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,17 @@ | ||
events {} | ||
|
||
http { | ||
server { | ||
listen 8002 default_server; | ||
|
||
location / { | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
client_max_body_size 200M; | ||
|
||
# Directly return a 200 without checking for credentials | ||
return 200 "No Auth Required\n"; | ||
} | ||
} | ||
} |
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
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
Oops, something went wrong.