Skip to content

Commit 3bbf55f

Browse files
authored
Merge pull request #232 from f5devcentral/nginx-apid
lab8
2 parents d9df1b6 + f076d55 commit 3bbf55f

1 file changed

Lines changed: 41 additions & 2 deletions

File tree

docs/class4/module2/lab8/lab8.rst

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,13 @@ Download the certificates
120120

121121
.. image:: ../pictures/3rd-udf-upload.png
122122
:align: left
123+
:scale: 50%
123124

124125
* Upload your zip file from this website. It will be uploaded into the Nginx instance.
125126

126127
.. image:: ../pictures/3rd-upload-site.png
127128
:align: left
129+
:scale: 70%
128130

129131

130132
Enable API Disovery and Download the token
@@ -144,12 +146,15 @@ Enable API Disovery and Download the token
144146
.. note:: You have finished the configuration on the F5 Distributed Cloud side, now you need to configure the JS module on the Nginx side to start sending logs to the CE and see API Discovery in action.
145147

146148
Configure the Nginx instance
147-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
149+
----------------------------
148150

149-
.. note:: The Nginx instance is already pre-configured to avoid to many copy-paste between this lab guide and the SSH session. You will just adapt the configuration to collect the logs from Nginx application and forward the logs to the CE.
151+
.. note:: The Nginx instance is already pre-configured to avoid too many copy-paste between this lab guide and the SSH session. You will just adapt the configuration to collect the logs from Nginx application and forward the logs to the CE.
150152

151153
* SSH or WEBSSH to the Nginx instance
152154

155+
Copy the certificats
156+
^^^^^^^^^^^^^^^^^^^^
157+
153158
* Copy the certificates zip file into /home/ubuntu directory and unzup it
154159

155160
.. code-block:: bash
@@ -169,4 +174,38 @@ Configure the Nginx instance
169174
sudo chmod 644 /etc/nginx/certs/client.crt
170175
sudo chmod 644 /etc/nginx/certs/server_ca.crt
171176
177+
Update the nginx configuration
178+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
179+
180+
* Modify the nginx.conf file
181+
182+
.. code-block:: bash
183+
184+
sudo nano /etc/nginx/nginx.conf
185+
186+
.. note:: Have a look on the nginx.conf file, and check the blocks that are already configured for you. I added comments so you can understand them.
187+
188+
.. note:: Block Upstream obelix -> this is the CE
189+
190+
.. note:: Block Server 8080 -> website to upload the certificates
191+
192+
.. note:: Block Server 80 -> the Nginx LB proxying the sentence application
193+
194+
.. note:: Block Server 18080 -> the API Discovery configuration to collect the logs, format them, and send them to the CE.
195+
196+
* At the end of the file, ``uncomment`` those 5 lines. Ctrl+X to exit, Y to save and Enter to confirm.
197+
198+
.. code-block:: bash
199+
200+
proxy_ssl_certificate /etc/nginx/certs/client.crt;
201+
proxy_ssl_certificate_key /etc/nginx/certs/client.key;
202+
proxy_ssl_trusted_certificate /etc/nginx/certs/server_ca.crt;
203+
proxy_ssl_verify on;
204+
proxy_ssl_server_name off; # keep off unless Telemetry_Ingestion_Service cert CN matches host
205+
206+
* Reload nginx configuration
207+
208+
.. code-block:: bash
209+
210+
sudo nginx -s reload
172211

0 commit comments

Comments
 (0)