Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 3 additions & 20 deletions labs/lab5/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ By the end of the lab you will be able to:
- Build your Workshop enviroment with Docker Compose
- Verify Container build with NGINX tests
- Configure NGINX for Proxy and Load Balancing
- Configure NGINX Extended Access Logging
- Explore NGINX load balancing algorithms
- Run an HTTP Load Test tool
- Configure and test Persistence
Expand Down Expand Up @@ -1217,26 +1216,11 @@ With NGINX, there are several configuration options for this, but in this next l

<br/>

If you need to find the `answers` to the lab exercises, you will find the final NGINX configuration files for all the exercises in the `labs/lab5/final` folder. Use them for reference to compare how you completed the labs.
## Wrap Up

>If you are finished with this lab, you can use Docker Compose to shut down your test environment. Make sure you are in the `lab5` folder:
1. If you need to find the `answers` to the lab exercises, you will find the final NGINX configuration files for all the exercises in the `labs/lab5/final` folder. Use them for reference to compare how you completed the labs.

```bash
cd lab5
docker compose down

```

```bash
##Sample output##
Running 5/5
Container s.jobs-nginx-plus Removed
Container s.jobs-web2 Removed
Container s.jobs-web3 Removed
Container s.jobs-web1 Removed
Network lab5_default Removed

```
1. If you are finished with this lab move to the next lab. Please donot shut down your test environment as you would be using the same environment in lab6.

**This completes Lab5.**

Expand All @@ -1247,7 +1231,6 @@ Network lab5_default Removed
- [NGINX Plus](https://docs.nginx.com/nginx/)
- [NGINX Admin Guide](https://docs.nginx.com/nginx/admin-guide/)
- [NGINX Technical Specs](https://docs.nginx.com/nginx/technical-specs/)
- [NGINX Variables](https://nginx.org/en/docs/varindex.html)
- [NGINX Load Balancing Methods](https://docs.nginx.com/nginx/admin-guide/load-balancer/http-load-balancer/#choosing-a-load-balancing-method)
- [NGINX Sticky Cookie](https://docs.nginx.com/nginx/admin-guide/load-balancer/http-load-balancer/#enabling-session-persistence)
- [Docker](https://www.docker.com/)
Expand Down
45 changes: 0 additions & 45 deletions labs/lab6/docker-compose.yml

This file was deleted.

44 changes: 44 additions & 0 deletions labs/lab6/final/cafe.example.com.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# cafe.example.com HTTP
# NGINX Basics Workshop
# Nov 2024, Chris Akker, Shouvik Dutta, Adam Currier
#
server {

listen 80; # Listening on port 80 on all IP addresses on this machine

server_name cafe.example.com; # Set hostname to match in request

# Uncomment the status_zone directive below to add metrics to the Dashboard
status_zone cafe-VirtualServer;

# access_log /var/log/nginx/cafe.example.com.log main;
access_log /var/log/nginx/cafe.example.com.log main_ext; Extended Logging
error_log /var/log/nginx/cafe.example.com_error.log info;

location / {

# Uncomment the status_zone directive below to add metrics to the Dashboard
status_zone /;

# Uncomment to enable proxy headers and HTTP keep-alives
include includes/proxy_headers.conf;
include includes/keepalive.conf;

# proxy_pass http://web1; # Proxy to another server
# proxy_pass http://nginx.org; # Proxy to another website
proxy_pass http://nginx_cafe; # Proxy AND load balance to a list of servers
}

# Active Healthchecks
location @health_check {
internal; # Requests by NGINX only
proxy_set_header Host cafe.example.com;
proxy_pass http://nginx_cafe;
health_check interval=5s fails=3 passes=2 uri=/ match=status_ok;

# Health check access logs are boring but errors are interesting
# access_log /var/log/nginx/health_check.log main;
access_log off;
error_log /var/log/nginx/error.log error;
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# NGINX Plus Basics, Nov 2024
# Chris Akker, Shouvik Dutta, Adam Currier
# status_ok.conf
# NGINX Basics, status_ok.conf
# Nov 2024 - Chris Akker, Shouvik Dutta, Adam Currier
#
# Simple health check expecting http 200 and correct Content-Type
match status_ok {
Expand Down
Binary file removed labs/lab6/media/coffee-url.png
Binary file not shown.
Binary file removed labs/lab6/media/dashboard-http-upstreams.png
Binary file not shown.
Binary file removed labs/lab6/media/dashboard-http-zones.png
Binary file not shown.
Binary file removed labs/lab6/media/dashboard-workers.png
Binary file not shown.
Binary file modified labs/lab6/media/dashboard_disabled_web3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified labs/lab6/media/dashboard_enabled_web3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified labs/lab6/media/dashboard_with_load.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified labs/lab6/media/health-check-all-up.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified labs/lab6/media/health-check-one-down.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified labs/lab6/media/health-check-one-up.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed labs/lab6/media/lab5_cafe-default.png
Binary file not shown.
Binary file added labs/lab6/media/lab6_none_addfile_statusok.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added labs/lab6/media/lab6_none_publish_success.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added labs/lab6/media/lab6_none_statusok_publish.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed labs/lab6/media/nginx-logo.png
Binary file not shown.
Binary file removed labs/lab6/media/tea-url.png
Binary file not shown.
Binary file modified labs/lab6/media/thunder_client_extension.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 0 additions & 47 deletions labs/lab6/nginx-plus/etc/nginx/conf.d/cafe.example.com.conf

This file was deleted.

24 changes: 0 additions & 24 deletions labs/lab6/nginx-plus/etc/nginx/conf.d/dashboard.conf

This file was deleted.

34 changes: 0 additions & 34 deletions labs/lab6/nginx-plus/etc/nginx/conf.d/upstreams.conf

This file was deleted.

9 changes: 0 additions & 9 deletions labs/lab6/nginx-plus/etc/nginx/includes/keepalive.conf

This file was deleted.

20 changes: 0 additions & 20 deletions labs/lab6/nginx-plus/etc/nginx/includes/log_formats/main_ext.conf

This file was deleted.

12 changes: 0 additions & 12 deletions labs/lab6/nginx-plus/etc/nginx/includes/proxy_headers.conf

This file was deleted.

32 changes: 0 additions & 32 deletions labs/lab6/nginx-plus/etc/nginx/nginx.conf

This file was deleted.

1,929 changes: 0 additions & 1,929 deletions labs/lab6/nginx-plus/usr/share/nginx/html/dashboard.html

This file was deleted.

22 changes: 0 additions & 22 deletions labs/lab6/nginx-plus/usr/share/nginx/html/gtr.html

This file was deleted.

Binary file removed labs/lab6/nginx-plus/usr/share/nginx/html/gtr.jpg
Binary file not shown.
24 changes: 0 additions & 24 deletions labs/lab6/nginx-plus/usr/share/nginx/html/index.html

This file was deleted.

Loading