|
|
@@ -21,36 +21,3 @@ server {
|
|
21
|
21
|
}
|
|
22
|
22
|
}
|
|
23
|
23
|
|
|
24
|
|
-### SSL Stuff
|
|
25
|
|
-server {
|
|
26
|
|
- listen 443 ssl http2;
|
|
27
|
|
- listen [::]:443 ssl http2;
|
|
28
|
|
-
|
|
29
|
|
- server_name handwork2026 www.handwork2026;
|
|
30
|
|
-
|
|
31
|
|
- include snippets/letsencrypt.conf;
|
|
32
|
|
- include snippets/ssl-params.conf;
|
|
33
|
|
-
|
|
34
|
|
- location / {
|
|
35
|
|
- #blocks blank user_agents
|
|
36
|
|
- if ($http_user_agent = "") { return 301 $scheme://www.google.com/; }
|
|
37
|
|
-
|
|
38
|
|
- proxy_set_header Host $host;
|
|
39
|
|
- proxy_set_header X-Real-IP $remote_addr;
|
|
40
|
|
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
41
|
|
- proxy_set_header X-Forwarded-Proto $scheme;
|
|
42
|
|
- proxy_set_header Accept-Encoding "";
|
|
43
|
|
- proxy_set_header Proxy "";
|
|
44
|
|
-
|
|
45
|
|
- proxy_pass http://wp;
|
|
46
|
|
- proxy_redirect off;
|
|
47
|
|
-
|
|
48
|
|
- proxy_connect_timeout 300;
|
|
49
|
|
- proxy_send_timeout 300;
|
|
50
|
|
- proxy_read_timeout 300;
|
|
51
|
|
- }
|
|
52
|
|
-
|
|
53
|
|
- location ~/\.ht {
|
|
54
|
|
- deny all;
|
|
55
|
|
- }
|
|
56
|
|
-}
|