Coder Social home page Coder Social logo

Thingspeak behind reverse proxy about thingspeak HOT 2 OPEN

iobridge avatar iobridge commented on September 20, 2024
Thingspeak behind reverse proxy

from thingspeak.

Comments (2)

fuco809 avatar fuco809 commented on September 20, 2024

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;
}
}

based on:
https://www.digitalocean.com/community/tutorials/how-to-configure-nginx-with-ssl-as-a-reverse-proxy-for-jenkins

from thingspeak.

franzhartwig avatar franzhartwig commented on September 20, 2024

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)

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.