Skip to content

Commit bcbfeeb

Browse files
Remove spoof check
1 parent 9f87479 commit bcbfeeb

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

config/nginx/gunicorn.conf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ upstream app_server {
66
server unix:/run/gunicorn.sock fail_timeout=0;
77
}
88

9-
server {
10-
# if no Host match, close the connection to prevent host spoofing
11-
listen 80 default_server;
12-
return 444;
13-
}
14-
159
server {
1610
# https://nginx.org/en/docs/http/ngx_http_core_module.html#listen
1711
listen 80 deferred;

docs/deployment.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,20 @@ title: SORT architecture
1010
---
1111
flowchart LR
1212
Browser -- "HTTPS port 443" --> nginx
13-
subgraph UoS
14-
nginx -- "Unix socket" --> Gunicorn
15-
Gunicorn -- "WSGI" --> Django
16-
Django --> PostgreSQL
13+
subgraph University of Sheffield network
14+
subgraph sort-web-app machine
15+
nginx -- "Unix socket" --> Gunicorn
16+
Gunicorn -- "WSGI" --> Django
17+
Django --> PostgreSQL
18+
end
1719
end
1820
```
1921

22+
When accessing the web site, the following process happens:
2023

24+
1. A user uses their web browser to access the server using the HTTPS port 443;
25+
2. The request is sent to the web server and is handled by Nginx;
26+
3.
2127

2228
You may also refer to the following guides:
2329

@@ -55,17 +61,17 @@ sudo systemctl status nginx
5561

5662
# View logs
5763

58-
[nginx logs](https://docs.nginx.com/nginx/admin-guide/monitoring/logging/)
64+
View [nginx logs](https://docs.nginx.com/nginx/admin-guide/monitoring/logging/)
5965

6066
```bash
61-
sudo tail /var/log/nginx/error.log
62-
sudo tail /var/log/nginx/access.log
67+
sudo tail --follow /var/log/nginx/access.log
68+
sudo tail --follow /var/log/nginx/error.log
6369
```
6470

65-
[Gunicorn logs](https://docs.gunicorn.org/en/stable/settings.html#logging)
71+
View [Gunicorn logs](https://docs.gunicorn.org/en/stable/settings.html#logging)
6672

6773
```bash
68-
sudo journalctl -u gunicorn.service
74+
sudo journalctl -u gunicorn.service --follow
6975
```
7076

7177
# Control

0 commit comments

Comments
 (0)