Skip to content

Commit 3ffefca

Browse files
bodbdigrclaude
andcommitted
Default base URL to ingressv2.rebelboost.com proxy
Allows plugin to work before DNS is pointed to RebelBoost. Requests go to the proxy directly with Host/X-Forwarded-Host headers identifying the site. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 14fb87d commit 3ffefca

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

includes/class-api-client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function __construct() {
1616
*/
1717
public function reload() {
1818
$override = get_option( 'rebelboost_host', '' );
19-
$this->base_url = ! empty( $override ) ? untrailingslashit( $override ) : untrailingslashit( site_url() );
19+
$this->base_url = ! empty( $override ) ? untrailingslashit( $override ) : 'https://ingressv2.rebelboost.com';
2020
$this->api_key = get_option( 'rebelboost_api_key', '' );
2121
}
2222

includes/class-settings.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,7 @@ public function render_host_field() {
178178
esc_attr( $value )
179179
);
180180
echo '<p class="description">';
181-
printf(
182-
/* translators: %s: the site URL */
183-
esc_html__( 'Override the RebelBoost proxy URL. Leave empty to use your site URL (%s). Only needed for non-standard setups.', 'rebelboost' ),
184-
'<code>' . esc_html( site_url() ) . '</code>'
185-
);
181+
esc_html_e( 'Override the RebelBoost proxy URL. Leave empty to use the default (https://ingressv2.rebelboost.com). Only needed for non-standard setups.', 'rebelboost' );
186182
echo '</p>';
187183
}
188184

0 commit comments

Comments
 (0)