Giter VIP home page Giter VIP logo

Comments (5)

Yetangitu avatar Yetangitu commented on May 31, 2024

You can use a single domain to serve both the proxy as well as the "playground" (which runs in a development server which is not tested for security problems so make sure to put it behind a password). The following example assumes that:

  • you use the domain rssproxy.example.org
  • you're using a normal nginx install (not in a container/docker/whatever)
  • the actual rss-proxy install (both services) runs on daemon.example.org

Use something along these lines:

server {
	listen 80;
	server_name rssproxy.example.org;

	include /etc/nginx/snippets/enforcehttps.conf;
}

server {
	listen 443 ssl http2;
	server_name rssproxy.example.org;

	ssl_certificate /etc/letsencrypt/live/rssproxy.example.org/fullchain.pem;
	ssl_certificate_key /etc/letsencrypt/live/rssproxy.example.org/privkey.pem;

	location /api {
		include /etc/nginx/proxy_params;
		proxy_redirect http:// https://;
		proxy_pass http://daemon.example.org:3000;
	}
	location / {
                satisfy any;
                # allow 192.168.1.0/24; # allows internal access without password
                auth_basic "RSSProxy";
                auth_basic_user_file /etc/nginx/rssproxy.auth;
                include /etc/nginx/proxy_params;
		proxy_redirect http:// https://;
		proxy_pass http://daemon.example.org:4200;
	}
}

If you wonder what is in those referenced included files:

$ cat /etc/nginx/proxy_params 
# global proxy conf
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;
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Port $server_port;
proxy_pass_request_headers on;
$ cat /etc/nginx/snippets/enforcehttps.conf 
location / {
	return 301 https://$server_name$request_uri;
}

from rss-proxy.

damoeb avatar damoeb commented on May 31, 2024

Sry for the late response. Do you mind checking again with the new version 2? I added my ngix.conf reverse proxy

from rss-proxy.

BachDANG avatar BachDANG commented on May 31, 2024

Can i run it directly from code without creating docker image?

from rss-proxy.

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.