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

Add support for HTTP tunnelling #106

Merged
merged 6 commits into from
Nov 27, 2023
Merged

Add support for HTTP tunnelling #106

merged 6 commits into from
Nov 27, 2023

Conversation

leemaguire
Copy link
Contributor

@leemaguire leemaguire commented Oct 27, 2023

  • Add support for HTTP tunnelling.
    realm::proxy_config proxy_config;
    proxy_config.port = 8080;
    proxy_config.address = "127.0.0.1";
    proxy_config.username_password = {"username", "password"};

    realm::App::configuration app_config;
    app_config.proxy_configuration = proxy_config;
    auto app = realm::App(app_config);

    auto user = app.get_current_user();
    auto sync_config = user->flexible_sync_configuration();
    sync_config.set_proxy_config(proxy_config);
    auto synced_realm = experimental::db(sync_config);

@leemaguire leemaguire self-assigned this Oct 27, 2023
@leemaguire leemaguire changed the title Lm/proxy Add support for HTTP tunnelling Oct 27, 2023
@leemaguire leemaguire marked this pull request as ready for review October 31, 2023 16:00
@leemaguire leemaguire requested a review from jsflax October 31, 2023 16:44
src/cpprealm/internal/bridge/realm.hpp Outdated Show resolved Hide resolved
src/cpprealm/internal/network/network_transport.cpp Outdated Show resolved Hide resolved
src/cpprealm/internal/network/network_transport.cpp Outdated Show resolved Hide resolved
@leemaguire leemaguire force-pushed the lm/proxy branch 4 times, most recently from 60eda68 to 55c2f98 Compare November 22, 2023 12:41
@leemaguire leemaguire merged commit edd14c2 into main Nov 27, 2023
28 of 34 checks passed
@leemaguire leemaguire deleted the lm/proxy branch November 27, 2023 13:08
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants