Skip to content

Commit 6d1c2e5

Browse files
authored
Merge pull request #245 from f5devcentral/dev
Dev
2 parents 9b1ecd2 + 8a6597a commit 6d1c2e5

1 file changed

Lines changed: 23 additions & 4 deletions

File tree

docs/class4/module2/lab8/lab8.rst

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ Copy the certificats
184184
sudo chmod 644 /etc/nginx/certs/client.crt
185185
sudo chmod 644 /etc/nginx/certs/server_ca.crt
186186
187+
187188
Update the nginx configuration
188189
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
189190

@@ -195,14 +196,32 @@ Update the nginx configuration
195196
196197
.. 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.
197198

198-
.. note:: Block Upstream obelix -> this is the CE
199+
* Block Upstream obelix -> this is the CE
200+
201+
* Block Server 8080 -> website to upload the certificates
202+
203+
* Block Server 80 -> the Nginx LB proxying the sentence application
204+
205+
* Block Server 18080 -> the API Discovery configuration to collect the logs, format them, and send them to the CE.
206+
207+
208+
* Add your token in the ``Main Server`` section
209+
210+
.. code-block:: bash
211+
:emphasize-lines: 6
199212
200-
.. note:: Block Server 8080 -> website to upload the certificates
213+
location / {
214+
proxy_pass http://10.1.20.7:31220;
215+
proxy_set_header Host $host;
201216
202-
.. note:: Block Server 80 -> the Nginx LB proxying the sentence application
217+
# Add your token below inside the ""
218+
set $token "<your-token-value>";
203219
204-
.. note:: Block Server 18080 -> the API Discovery configuration to collect the logs, format them, and send them to the CE.
220+
js_header_filter main.header_filter;
221+
js_body_filter main.body_filter;
205222
223+
proxy_set_header Accept-Encoding "";
224+
}
206225
207226
* At the end of the file, ``uncomment`` those 5 lines. Ctrl+X to exit, Y to save and Enter to confirm.
208227

0 commit comments

Comments
 (0)