Comments (2)
i use nginx for that with a config like this example without ssl:
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
index index.html index.htm;
server_name YourServer.Name.Com;
location / {
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;
# Fix the βIt appears that your reverse proxy set up is broken" error.
proxy_pass http://localhost:3000;
proxy_read_timeout 90;
proxy_redirect http://localhost:3000 https://YourServer.Name.Com;
}
}
from thingspeak.
Thank you, fuco809, for your reply. I forgot about this threat, my threat ...
Some day, I got it to work with Apache. This is the virtual host config:
<IfModule mod_ssl.c>
<VirtualHost *:443>
## SSL specific settings stripped ##
# I had to modify some some lines of my default config for other virtual hosts:
Header always unset Content-Security-Policy
Header always set Content-Security-Policy "upgrade-insecure-requests"
# This line unsets X-Content-Type-Options: nosniff in my default config for other virtual hosts, this may be the key line:
Header always unset X-Content-Type-Options
# Maybe this line is not nessecary (any more?):
#Header always unset Strict-Transport-Security
ServerAdmin [email protected]
ServerName thingspeak.example.com
### ReverseProxy ###
ProxyRequests Off
ProxyHTMLExtended On
ProxyPass / http://localhost:3000/ timeout=180 retry=1 acquire=3000 Keepalive=On
ProxyPassReverse / http://localhost:3000/
ProxyHTMLURLMap http://localhost:3000/ /
SetOutputFilter proxy-html
RequestHeader unset Accept-Encoding
ProxyPreserveHost On
### Ende ReverseProxy ###
</VirtualHost>
</IfModule>
from thingspeak.
Related Issues (20)
- Disabling plugins HOT 1
- feature: update HOT 2
- Talkback, React support HOT 1
- External dependencies HOT 1
- 'show_comments_in_menu' has been removed from ActiveAdmin since 1.0.0 HOT 2
- Hardcoded references to api.thingspeak.com and thingspeak.com
- Average aggregator works wrong when there are missing values for the period
- Impossible to install because of active_admin change HOT 1
- Can't install due to tzinfo error HOT 1
- bulk update available ?
- Problem html display
- Ruby error when try to remove a channel
- [Delete] causes NoMethodError
- Gauge widget caused to hang a channel
- Logging HOT 1
- Install on Debian 9 not successful HOT 3
- password forgotten process fails
- Cannot install via pip HOT 1
- SUCCESS!! ThingSpeak working on Debian 10 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 thingspeak.