Skip to content

Commit

Permalink
chore: standby nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
alihm committed Apr 26, 2024
1 parent 0fea106 commit 8b2370c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wp-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ function getenv_docker( $env, $default ) {
define( 'WP_AUTO_UPDATE_CORE', false );
}
if ( $is_slave ) {
header('HTTP/1.1 500 Internal Server Error');
echo 'This node is not active';
header('HTTP/1.1 503 Service Unavailable');
echo 'Standby node. Runs on <a href="https://runonflux.io">Flux</a>';
exit(0);
}
// If we're behind a proxy server and using HTTPS, we need to alert WordPress of that fact
Expand Down

0 comments on commit 8b2370c

Please sign in to comment.