--- wp-config.php	2020-06-17 12:32:04.400411871 +0000
+++ wp-config.php	2020-06-17 12:43:43.337572558 +0000
@@ -68,6 +68,11 @@
 
 /* That's all, stop editing! Happy blogging. */
 
+/** Reverse proxy */
+if ( isset($_SERVER['SERVER_ADDR']) && ( $_SERVER['SERVER_ADDR'] == '127.0.0.1' || $_SERVER['SERVER_ADDR'] == '::1' ) )
+	if ( isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https' )
+		$_SERVER['HTTPS'] = 'on';
+
 /** Absolute path to the WordPress directory. */
 if ( ! defined( 'ABSPATH' ) )
 	define( 'ABSPATH', dirname( __FILE__ ) . '/' );
