איני יכול להפנות http ל-https

סיכום מבוסס בינה מלאכותית

cmdntd is seeking help with forcing HTTPS redirection in Discourse running on OpenLiteSpeed with Docker and reverse proxy. Despite enabling “force HTTPS” in the admin panel and modifying the nginx configuration in app.yml, the redirect from HTTP to HTTPS is not working. They also tried using .htaccess but still face the issue.

Hi,

I use openlitespeed and install discourse by docker with reserve proxy

I can not force redirect from http to https, I try all this:

  1. Enable force https in admin
  2. Set up app.yml
- replace:
     filename: "/etc/nginx/conf.d/discourse.conf"
     from: /server.+{/
     to: |
       server {
         if ($http_x_forwarded_proto = 'http'){
          return 301 https://$host$request_uri;
         }
  1. Set up htaccess to redirect

Could you help me this issue?

לייק 1