Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bitnami/wordpress] HTTPS in WordPress Address and Site Address #18959

Closed
Teeptrak opened this issue Aug 31, 2023 · 6 comments
Closed

[bitnami/wordpress] HTTPS in WordPress Address and Site Address #18959

Teeptrak opened this issue Aug 31, 2023 · 6 comments
Assignees
Labels

Comments

@Teeptrak
Copy link

Teeptrak commented Aug 31, 2023

Name and Version

bitnami/wordpress:17.1.4

What is the problem this feature will solve?

After checking the Bitnami WordPress Docker Image and helm values, I couldn't find a way to have WordPress Address and Site Address to use HTTPS.

wp-config.php seems to be hardcoded with HTTP.

I tried using extraEnvVars:

  - name: WORDPRESS_ENABLE_HTTPS
    value: 'yes'

And also "wordpressScheme: https" but it's not changing anything.
Either I'm doing something wrong or the feature is not available.

Thank you!

What is the feature you are proposing to solve the problem?

Helm values or ENV that would change wp-admin.php HTTP to HTTPS.

What alternatives have you considered?

None yet

@bitnami-bot bitnami-bot added this to Triage in Support Aug 31, 2023
@github-actions github-actions bot added the triage Triage is needed label Aug 31, 2023
@carrodher carrodher moved this from Triage to In progress in Support Sep 4, 2023
@github-actions github-actions bot added in-progress and removed triage Triage is needed labels Sep 4, 2023
@bitnami-bot bitnami-bot assigned fevisera and unassigned javsalgar Sep 4, 2023
@fevisera fevisera changed the title HTTPS in WordPress Address and Site Address [bitnami/wordpress] HTTPS in WordPress Address and Site Address Sep 18, 2023
@fevisera
Copy link
Contributor

Hi @Teeptrak,

The feature you refer to appears to be already available and can be configured using the wordpressScheme: https setting. After setting this value, when I navigate to https://127.0.0.1/wp-admin/options-general.php I see the https is included in the URL fields:

image

If you are referring to a different feature or functionality, please provide more details, and I will be happy to assist you further.

Thank you for getting in touch with us.

@github-actions github-actions bot moved this from In progress to Pending in Support Sep 18, 2023
@github-actions
Copy link

github-actions bot commented Oct 4, 2023

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

@github-actions github-actions bot added the stale 15 days without activity label Oct 4, 2023
@github-actions
Copy link

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.

@bitnami-bot bitnami-bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 10, 2023
@bitnami-bot bitnami-bot moved this from Pending to Solved in Support Oct 10, 2023
@github-actions github-actions bot removed this from Solved in Support Oct 15, 2023
@Pivert
Copy link

Pivert commented Jan 13, 2024

Having the same issue with traefik in front handling the https. The pod is http only.

wordpressScheme: https in helm values

But :

1. Get the WordPress URL and associate WordPress hostname to your cluster external IP:

   export CLUSTER_IP=$(minikube ip) # On Minikube. Use: `kubectl cluster-info` on others K8s clusters
   echo "WordPress URL: http://www.pivert.org/"
   echo "$CLUSTER_IP  www.pivert.org" | sudo tee -a /etc/hosts
$ kubectl exec -i -t pivertwp-wordpress-b949cf5db-9h2l6 -- grep '^define.*URL' /bitnami/wordpress/wp-config.php
define( 'WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] . '/' );

I did try:

extraEnvVars:
  - name: WP_SITEURL
    value: https://www.pivert.org/

wordpressSkipInstall: true
## @param wordpressExtraConfigContent Add extra content to the default wp-config.php file
## e.g:
## wordpressExtraConfigContent: |
##   @ini_set( 'post_max_size', '128M');
##   @ini_set( 'memory_limit', '256M' );
##
wordpressExtraConfigContent: |
  define( 'WP_SITEURL', 'https://www.pivert.org/');

But the WP_SITEURL remains in http scheme and the admin interface does not work because of "mixed-content" and CSP.

@carrodher
Copy link
Member

Thank you for reaching out and for your interest in our project. We'd be happy to assist you, but to do so effectively, we'll need some more details. Could you please create a separate issue filling the Issue template?

Providing this information will help us better understand your situation and assist you in a more targeted manner.

@Pivert
Copy link

Pivert commented Jan 14, 2024

Tks. Please consider my case void:

  • I was cascading 2 traefik during a migration.
  • After the full switch (including turning off the original traefik to prevent being banned by letsencrypt), the problem fixed by itself.
  • So I suspect the headers from the origin trafik (http) to override the headers from the internet exposed traefik (https).

Still, it does not explain why the above mentioned settings did not force the WP_SITEURL to the https scheme.

Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants