Comments (2)
I don't want to include a full proxy profile because different users have different needs, but i think your point about including some notes about X-Forwarded-Proto is a good one, i can add that to the readme
from espial.
I know this is not a real issue but it might be good to include the necessary configurations to setup a reverse proxy. The following code snippet can be great help to others since the application requires some headers to be set and most browsers give mixed content error if the headers are not in place.
location ^~ / { proxy_pass http://yourdomain.com:3000/; proxy_buffering off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; }
Shortly, at least the following headers should be set:
- Host
- X-Forwarded-Proto
The other's are not required to make CSS and JS files load correctly, however can be useful for other purposes.
One possible solution to remove the protocol dependency is to call the styles and scripts by omitting the protocol and letting the browser handling it: //domain.com/stlye.css I tried to find where this is being set but couldn't navigate myself safely in Haskell code.
Thanks, this helped me out a tonne :-)
from espial.
Related Issues (20)
- [Feature Request] Browser plugin HOT 1
- Integrate into existing server HOT 2
- Prevent iOS zooming when focusing input elements HOT 3
- [Feature Request] Show/Autocomplete existing tags in Bookmarklet HOT 3
- Builds or Docker images for arm/aarch64 architectures HOT 1
- Archive and Full-text search HOT 2
- Documentation? HOT 8
- Found a possible security concern HOT 2
- Support importing Netscape Bookmarks file format HOT 1
- Ability to archive individual entries
- Description field value type HOT 4
- Publish latest release to Hackage? HOT 2
- Invalid URL HOT 5
- automatically bookmark pages annotated with hypothes HOT 2
- Adaptation to Mysql HOT 3
- Question: Import with Archive HOT 2
- RSS feed always proposes all content instead of tags in use HOT 1
- Move tmp directory out of static
- Add SIGTERM handler to shut down cleanly HOT 3
- Make tag cloud available for public users HOT 4
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 espial.