@@ -184,23 +184,6 @@ Copy the certificats
184184 sudo chmod 644 /etc/nginx/certs/client.crt
185185 sudo chmod 644 /etc/nginx/certs/server_ca.crt
186186
187- * Add your token in the ``Main server `` section
188-
189- .. code-block :: bash
190-
191- location / {
192- proxy_pass http://10.1.20.7:31220;
193- proxy_set_header Host $host ;
194-
195- # Add your token below inside the ""
196- set $token " <your-token-value>" ;
197-
198- js_header_filter main.header_filter;
199- js_body_filter main.body_filter;
200-
201- proxy_set_header Accept-Encoding " " ;
202- }
203-
204187
205188 Update the nginx configuration
206189^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -213,15 +196,33 @@ Update the nginx configuration
213196
214197 .. 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.
215198
216- .. note :: Block Upstream obelix -> this is the CE
199+ * Block Upstream obelix -> this is the CE
217200
218- .. note :: Block Server 8080 -> website to upload the certificates
201+ * Block Server 8080 -> website to upload the certificates
219202
220- .. note :: Block Server 80 -> the Nginx LB proxying the sentence application
203+ * Block Server 80 -> the Nginx LB proxying the sentence application
221204
222- .. note :: Block Server 18080 -> the API Discovery configuration to collect the logs, format them, and send them to the CE.
205+ * Block Server 18080 -> the API Discovery configuration to collect the logs, format them, and send them to the CE.
223206
224207
208+ * Add your token in the ``Main Server `` section
209+
210+ .. code-block :: bash
211+ :emphasize-lines: 6
212+
213+ location / {
214+ proxy_pass http://10.1.20.7:31220;
215+ proxy_set_header Host $host ;
216+
217+ # Add your token below inside the ""
218+ set $token " <your-token-value>" ;
219+
220+ js_header_filter main.header_filter;
221+ js_body_filter main.body_filter;
222+
223+ proxy_set_header Accept-Encoding " " ;
224+ }
225+
225226 * At the end of the file, ``uncomment `` those 5 lines. Ctrl+X to exit, Y to save and Enter to confirm.
226227
227228 .. code-block :: bash
0 commit comments