Comments (9)
I switched from 0.53.0 Alpha2 to 0.52.7, but it still doesn't work properly.
from hfs.
i think it's because you need to add X-Forwarded-Proto to your nginx.
Give it a try
from hfs.
I tried using X-Forwarded Proto in frpc and Nginx, and even tried Apache virtual hosting, but it still didn't work.
from hfs.
how did you configure it?
was it like this?
proxy_set_header X-Forwarded-Proto $scheme;
from hfs.
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.
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.
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.
![image](https://private-user-images.githubusercontent.com/1367199/330842673-6503df48-4129-433d-b72d-15a74c9f826c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTU4NDE1MTksIm5iZiI6MTcxNTg0MTIxOSwicGF0aCI6Ii8xMzY3MTk5LzMzMDg0MjY3My02NTAzZGY0OC00MTI5LTQzM2QtYjcyZC0xNWE3NGM5ZjgyNmMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDUxNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA1MTZUMDYzMzM5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZmE4MWZlOGQ0ODdkNDIyMWFjZTQ2N2Q3MjY3OGNiMTdhNDVlZmJmMWEyOGNjMGI3YjA2MWYwZmE4MzZiYzM0OSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.jl6DFEfRcqpGMO3ei6-lV-Y1E7kmjL_T-G9ZxC4Y4us)
this new message should make it clear for the admin
from hfs.
Related Issues (20)
- Page empty In legacy browsers HOT 21
- cannot download console log file HOT 2
- error middleware plugin thumbnails: Input buffer contains unsupported image format HOT 10
- search box for installed plugins HOT 1
- Error when trying to POST upload HOT 2
- New HFS server 0.52.3 browse option not list files HOT 2
- Accounts imported in bulk via CSV are encountering certificate parameter issues during login HOT 1
- antibrute plugin HOT 3
- Can't create admin account from config file HOT 7
- admin pannel show frontend url wrong HOT 27
- [plugin] download counter HOT 2
- Account -> Redirect subtly breaks if you do not start with a slash HOT 14
- Does hfs support uploading files through api, and uploading files must pass authentication HOT 12
- When will HFS support online opening and browsing of word/PPT/Excel? HOT 1
- A problem with uploading a 300MB file using HFS HOT 4
- Regression: Files and folders "Not Found" under reverse proxy HOT 27
- Get md5 checksum HOT 56
- [Accessibility] No focus when visiting hfs HOT 6
- How to create a directory on a web page in hfs HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hfs.