Git Product home page Git Product logo

Comments (9)

QinYueQwQ avatar QinYueQwQ commented on July 24, 2024

I switched from 0.53.0 Alpha2 to 0.52.7, but it still doesn't work properly.

from hfs.

rejetto avatar rejetto commented on July 24, 2024

i think it's because you need to add X-Forwarded-Proto to your nginx.
Give it a try

from hfs.

QinYueQwQ avatar QinYueQwQ commented on July 24, 2024

I tried using X-Forwarded Proto in frpc and Nginx, and even tried Apache virtual hosting, but it still didn't work.

from hfs.

rejetto avatar rejetto commented on July 24, 2024

how did you configure it?
was it like this?
proxy_set_header X-Forwarded-Proto $scheme;

from hfs.

QinYueQwQ avatar QinYueQwQ commented on July 24, 2024
server {
listen 19201;
server_name domain.com;

location / {
    proxy_pass http://localhost:90;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

}
I am not familiar with using nginx, is this configuration correct?

from hfs.

rejetto avatar rejetto commented on July 24, 2024

i still have to make some investigation on this, but i think you are doing one thing wrong:
if you want to use http just to redirect to https, you should make this on nginx directly,
NOT forward 80-90 and use HFS to redirect.
At that point you can disable http on HFS .

from hfs.

rejetto avatar rejetto commented on July 24, 2024

If you want to have http-to-https redirection with a reverse-proxy, you cannot use the "Force HTTPS" feature of HFS, as this would redirect to the internal HTTPS port, while you want to redirect to 443.
While this is still possible with a simple script, the correct way to handle this is to configure your proxy to do the job.
I just added this to the wiki.

from hfs.

rejetto avatar rejetto commented on July 24, 2024
image

this new message should make it clear for the admin

from hfs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.