Skip to main content

revproxy_auth

This class implements a reverse proxy intended to work inside a Flask server, allows to use the synology auth credentials for all your services behind the synology service proxy. Have you setup the reverse proxy in your synology NAS, but don´t want that everyone who knows your services´ URL can have access to your services? This repo will allow you to restrict the access from internet to your internal Api REST webservices, using the credentials and users that you have created in your Synology NAS. It will also request the OTP code if you have that configured in your NAS.

Configuration yml file will be place in the /home/var/{yourservicename}

Revproxy_auth can work in two mode:

  1. Embeded. You can embed the authentication by modifying your Flask based service: self.app = Flask(name, template_folder=template_folder, static_folder=static_folder) self.revproxy_auth = RevProxyAuth(self.app, root_class='yourservicename') self.app.add_url_rule('/', 'index', self.main_endpoint, methods=['GET', 'POST']) ... def main_endpoint(self): """ Main endpoint that returns the main page for your service Returns: response: The main html content """ return self.revproxy_auth.get_auth_response(request, lambda : render_template('form.html'))

  2. Proxy You need to make available a new service inside your LAN with the authproxy. You may want to include revproxy-auth as part of you already existing services... no need to create an specific flask or any newwsgi just for this. Just make the API REST call available. Configure the service in the config.yml so that it can redirect all the requests to the proper internal host & port. Create all your entry points in the synology reverse proxy menu, and make all of them point to the authproxy endpoint

Release files for revproxy-auth 0.1.16

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for revproxy-auth 0.1.16
File Interpreter ABI Platform
revproxy_auth-0.1.16-py3-none-any.whl Python 3 none any Details

Release files / revproxy_auth-0.1.16-py3-none-any.whl

Download URL revproxy_auth-0.1.16-py3-none-any.whl
Size 13.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8f9febaba3ecb37e81b40744809d5367a5aaeca200e11f28c69fd092637a2a63
BLAKE2b-256 checksum
How to use checksums
02ce37190fd52cc48cfb1c7994ca934417ec1cb1c58f51296a405a42f5f7ef31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.11

Release history Release notifications | RSS feed

This release

0.1.16 This release

1 release file

0.1.11

2 release files

0.1.10

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.10

2 release files

0.0.9

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page