Skip to content

Commit

Permalink
setup nginx for upload_to_stage.
Browse files Browse the repository at this point in the history
  • Loading branch information
youngsofun committed Oct 20, 2024
1 parent 7c9a61e commit 18c5624
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}

- name: Test with conn to nginx
run: mvn test -DexcludedGroups=FLAKY,SKIP_NGINX
run: mvn test -DexcludedGroups=FLAKY
env:
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
DATABEND_TEST_CONN_PORT: 8010
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public void testFileTransfer()
}
}

@Test(groups = {"Local", "SKIP_NGINX"})
@Test(groups = {"Local"})
public void testFileTransferThroughAPI() {
String filePath = generateRandomCSV(100000);
File f = new File(filePath);
Expand Down
4 changes: 4 additions & 0 deletions scripts/ci/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ http {

location / {
proxy_pass http://$backend;
proxy_set_header Content-Length $content_length;
proxy_set_header Content-Type $content_type;
proxy_set_header X-Databend-Relative-Path $http_x_databend_relative_path;
proxy_set_header X-Databend-Stage-Name $http_x_databend_stage_name;
}
}
}

0 comments on commit 18c5624

Please sign in to comment.