Skip to content

Commit

Permalink
Add edd and ingress updates
Browse files Browse the repository at this point in the history
  • Loading branch information
JayWood committed Aug 24, 2024
1 parent 84a4611 commit c77ef70
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 4 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
"wpackagist-plugin/contact-form-7": "^5.9",
"wpackagist-plugin/maintenance": "^4.12",
"wpackagist-plugin/flamingo": "^2.5",
"wpackagist-plugin/autodescription": "^5.0"
"wpackagist-plugin/autodescription": "^5.0",
"wpackagist-plugin/easy-digital-downloads": "^3.3"
},
"config": {
"allow-plugins": {
Expand Down
22 changes: 20 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion kube/system.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ metadata:
annotations:
kubernetes.io/ingress.class: nginx
cert-manager.io/cluster-issuer: "letsencrypt-prod"
nginx.ingress.kubernetes.io/proxy-body-size: "20m"
nginx.ingress.kubernetes.io/proxy-body-size: "64m"
nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/use-forwarded-headers: "true"
nginx.ingress.kubernetes.io/proxy-buffer-size: "16k"
spec:
tls:
- hosts:
Expand Down
6 changes: 6 additions & 0 deletions src/mu-plugins/loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,9 @@
HTML;

} );

add_action('muplugins_loaded', function() {
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') {
$_SERVER['HTTPS'] = 'on';
}
} );

0 comments on commit c77ef70

Please sign in to comment.