Merge pull request #119 from beckn/add_reverse_proxy_diagram
Added reverse proxy configuration diagram
This commit is contained in:
BIN
docs/images/reverse_proxy_configuration.png
Normal file
BIN
docs/images/reverse_proxy_configuration.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 47 KiB |
@@ -1,6 +1,8 @@
|
|||||||
# Nginx sample configuration for the different components
|
# Nginx sample configuration for the different components
|
||||||
|
|
||||||
This document lists the various Nginx configuration sample files used in the demo. These use the URLs used as example in the user guide and demo walkthrough. These can be used as a reference.
|
This document lists the various Nginx configuration sample files used in the demo. These use the URLs used as example in the user guide and demo walkthrough. These can be used as a reference. This diagram illustrates the proxy_pass configuration (which is the primary part required) of all the nodes. If you know reverse proxy configuration, this diagram is all you need and you can ignore the rest of this page.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
## Nginx sample configuration for Registry
|
## Nginx sample configuration for Registry
|
||||||
|
|
||||||
@@ -17,7 +17,12 @@ For the sake of illustration, all the urls are shown as subdomains of becknproto
|
|||||||
|
|
||||||
Some of the outputs listed below might be different when you run the script for the first time. The output depends on whether the required docker containers are present in the machine or not.
|
Some of the outputs listed below might be different when you run the script for the first time. The output depends on whether the required docker containers are present in the machine or not.
|
||||||
|
|
||||||
Note: Due to a [known issue](https://github.com/beckn/beckn-onix/issues/11), on certain machines, when the script is run for the first time, it errors out complaining about permission error in accessing docker daemon. Till this issue is fixed, the work around is to exit the terminal and restart the installation in a new terminal.
|
Run the following two commands on all machines where the script is being run for the first time. Login to a new shell for the command to take effect and continue with the installation. Not doing so will result in docker permisssion error
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo groupadd docker
|
||||||
|
sudo usermod -aG docker $USER
|
||||||
|
```
|
||||||
|
|
||||||
Please refer to the [Beckn-ONIX User Guide](./user_guide.md) for detailed explanation of the below steps.
|
Please refer to the [Beckn-ONIX User Guide](./user_guide.md) for detailed explanation of the below steps.
|
||||||
|
|
||||||
@@ -48,6 +53,8 @@ The following diagram shows a conceptual view of a multi-node Bekn network that
|
|||||||
- https://onix-bpp-client.becknprotocol.io to port 6001 on the machine
|
- https://onix-bpp-client.becknprotocol.io to port 6001 on the machine
|
||||||
- https://onix-bpp.becknprotocol.io to port 6002 on the machine
|
- https://onix-bpp.becknprotocol.io to port 6002 on the machine
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
- This guide assumes you have a marketplace or a headless store and want to set it up to work with the Beckn network. It is still useful for people who are developing the buyer side software and want to set it up with the network. In such cases a [sandbox](https://github.com/beckn/beckn-sandbox) might be required to mimic a marketplace or a headless shop.
|
- This guide assumes you have a marketplace or a headless store and want to set it up to work with the Beckn network. It is still useful for people who are developing the buyer side software and want to set it up with the network. In such cases a [sandbox](https://github.com/beckn/beckn-sandbox) might be required to mimic a marketplace or a headless shop.
|
||||||
|
|
||||||
## Create a new network and install the registry
|
## Create a new network and install the registry
|
||||||
|
|||||||
@@ -40,6 +40,10 @@ The following diagram shows a conceptual view of a multi-node Beckn network. The
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
The following diagram shows the reverse proxy configuration (referred to also in the individual installations below) using the URLs used in the examples. Refer to this diagram during the reverse proxy configuration steps.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
**Use of docker and reference implementations**
|
**Use of docker and reference implementations**
|
||||||
Docker compose and docker are extensively used in the installation and running of the various component software. Similarly the Beckn-ONIX installer, itself being a reference implementation, installs the reference implentation of the Beckn Adapter for the BAP and BPP, reference implementation of the registry and gateway. In order to interact with the internals of these components, we will need to enter the container. Familiarity with Docker will be useful in working with the installation. To list the running containers use `docker ps`. Similarly for example to connect to a container and browse it using shell, use `docker exec -it bap-client sh`
|
Docker compose and docker are extensively used in the installation and running of the various component software. Similarly the Beckn-ONIX installer, itself being a reference implementation, installs the reference implentation of the Beckn Adapter for the BAP and BPP, reference implementation of the registry and gateway. In order to interact with the internals of these components, we will need to enter the container. Familiarity with Docker will be useful in working with the installation. To list the running containers use `docker ps`. Similarly for example to connect to a container and browse it using shell, use `docker exec -it bap-client sh`
|
||||||
|
|
||||||
@@ -244,6 +248,7 @@ Refer to the [core specification](https://github.com/beckn/protocol-specificatio
|
|||||||
- In order for people new to Beckn who want to try out Beckn on their own machine, choose the option to "Set up a network on your local machine" in the main screen. The all in one installation has preconfigured values for variables and so pretty much does not ask for any input.
|
- In order for people new to Beckn who want to try out Beckn on their own machine, choose the option to "Set up a network on your local machine" in the main screen. The all in one installation has preconfigured values for variables and so pretty much does not ask for any input.
|
||||||
|
|
||||||
## Upgrading to a new version
|
## Upgrading to a new version
|
||||||
|
|
||||||
- The following commands illustrate upgrade of the docker image for Protocol Server (here BPP). Use similar process for other components
|
- The following commands illustrate upgrade of the docker image for Protocol Server (here BPP). Use similar process for other components
|
||||||
|
|
||||||
```
|
```
|
||||||
@@ -288,4 +293,4 @@ In the role of reverse proxy, Nginx will forward communication that came on a pa
|
|||||||
|
|
||||||
[This document](https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/) explains the configuration of reverse proxy using proxy_pass
|
[This document](https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/) explains the configuration of reverse proxy using proxy_pass
|
||||||
|
|
||||||
You can find sample Nginx configuration for the Registry, Gateway, BAP and BPP [here](./sample_nginx_configurations.md)
|
You can find sample Nginx configuration for the Registry, Gateway, BAP and BPP [here](./notes/sample_nginx_configurations.md)
|
||||||
|
|||||||
Reference in New Issue
Block a user