From c878461d0f13419cd2337f5885ab30ac1c612df5 Mon Sep 17 00:00:00 2001 From: Johannes Rothe Date: Fri, 15 Sep 2023 19:53:25 +0200 Subject: [PATCH] Set wordpress to use https --- ansible/roles/wordpress/templates/wp-config.php.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ansible/roles/wordpress/templates/wp-config.php.j2 b/ansible/roles/wordpress/templates/wp-config.php.j2 index 7f38e65..da15922 100644 --- a/ansible/roles/wordpress/templates/wp-config.php.j2 +++ b/ansible/roles/wordpress/templates/wp-config.php.j2 @@ -19,6 +19,10 @@ * @package WordPress */ +$_SERVER['HTTPS']='on'; +$_SERVER['REQUEST_SCHEME']='https'; +$_SERVER['SERVER_PORT']=443; + // ** Datenbank-Einstellungen - Diese Zugangsdaten bekommst du von deinem Webhoster. ** // /** * Ersetze datenbankname_hier_einfuegen