diff --git a/source/docs.md b/source/docs.md index 76eedb9..d0ac232 100644 --- a/source/docs.md +++ b/source/docs.md @@ -143,6 +143,7 @@ If you see this page, then SVR.JS installation is successful. You can now replac * SNI (Server Name Indication) support * ETag support (from SVR.JS 3.6.1) * Reverse proxy functionality (requires reverse-proxy-mod SVR.JS mod) +* Forward proxy functionality (requires forward-proxy-mod SVR.JS mod) #### Authentication and access control @@ -826,6 +827,12 @@ And configure _greenrhombus-scriptexts.json_ like this: PHP-FPM may run on different user than SVR.JS web server, so you may need to set permissions for the user, which PHP-FPM runs on. +### Forward proxy notes + +In order to use SVR.JS as a forward proxy, you need to install forward-proxy-mod SVR.JS mod. [Download this mod.](https://svrjs.org/mods) + +If you are using forward-proxy-mod, then local IP addresses and _localhost_ are also accessible from the proxy. You may block these using a firewall, if you don't want these to be accessible from the proxy + ### Reverse proxy configuration In order to use SVR.JS as a reverse proxy, you need to install reverse-proxy-mod SVR.JS mod. [Download this mod.](https://svrjs.org/mods) diff --git a/source/forward-proxy-mod-changelog.md b/source/forward-proxy-mod-changelog.md new file mode 100644 index 0000000..fc9f7ce --- /dev/null +++ b/source/forward-proxy-mod-changelog.md @@ -0,0 +1,8 @@ +--- +title: forward-proxy-mod change log +date: 2024-04-14 17:19:46 +--- + +## forward-proxy-mod 1.0.0 + +* First forward-proxy-mod release. diff --git a/source/index.md b/source/index.md index 689f633..58f04f2 100644 --- a/source/index.md +++ b/source/index.md @@ -10,7 +10,7 @@ svrjsversion: 3.14.12

SVR.JS is a web server running on Node.JS

-

Host a webpage, run server-side JavaScript, use mods to expand server functionality, or use it as a reverse proxy — all in SVR.JS! SVR.JS is a web server that runs on top of Node.JS, thus enabling server-side JavaScript on webpages. SVR.JS also has an integrated log viewer, log highlighter, and user management tool. SVR.JS can run not only on Node.JS but also in Bun (experimental support).

+

Host a webpage, run server-side JavaScript, use mods to expand server functionality, or use it as a forward or reverse proxy — all in SVR.JS! SVR.JS is a web server that runs on top of Node.JS, thus enabling server-side JavaScript on webpages. SVR.JS also has an integrated log viewer, log highlighter, and user management tool. SVR.JS can run not only on Node.JS but also in Bun (experimental support).

Download SVR.JS 3.14.12 diff --git a/source/mods.md b/source/mods.md index dcc4be2..63e8cb1 100644 --- a/source/mods.md +++ b/source/mods.md @@ -6,6 +6,7 @@ SVR.JS has these official SVR.JS mods: * [**Berno**](https://downloads.svrjs.org/mods/berno.ssi.1.1.0.tar.gz) - SSI (Server-Side Includes) engine (**not maintained**). ***Latest version: 1.1.0*** * [**easy-waf integration**](https://downloads.svrjs.org/mods/easywaf.integration.1.2.4.tar.gz) - WAF (web application firewall) mod. ***Latest version: 1.2.4*** +* [**forward-proxy-mod**](https://downloads.svrjs.org/mods/forward-proxy-mod.1.0.0.tar.gz) - mod, that enables SVR.JS to do forward proxy functionality. ***Latest version: 1.0.0*** * [**GreenRhombus**](https://downloads.svrjs.org/mods/greenrhombus.fastcgi.1.0.4.tar.gz) - FastCGI (Fast Common Gateway Interface) client. ***Latest version: 1.0.4*** * [**OrangeCircle**](https://downloads.svrjs.org/mods/orangecircle.scgi.1.2.0.tar.gz) - SCGI (Simple Common Gateway Interface) client. ***Latest version: 1.2.0*** * [**RedBrick**](https://downloads.svrjs.org/mods/redbrick.cgi.2.6.1.tar.gz) - CGI (Common Gateway Interface) engine. ***Latest version: 2.6.1*** @@ -91,6 +92,11 @@ Example _easywaf-config.json_ file: _View the [change log.](/easy-waf-integration-changelog)_ +### forward-proxy-mod + +_Notes are in the [SVR.JS documentation.](/docs#Forward-proxy-notes)_ +_View the [change log.](/forward-proxy-mod-changelog)_ + ### GreenRhombus _Notes are in the [SVR.JS documentation.](/docs#FastCGI-PHP-FPM)_