@@ -9,31 +9,7 @@ map $http_cookie $no_cache {
9
9
server {
10
10
listen 443 ssl;
11
11
listen [::]:443 ssl;
12
- server_name lvao.dev;
13
- ssl_certificate /etc/nginx/ssl/assistant.dev+1.pem;
14
- ssl_certificate_key /etc/nginx/ssl/assistant.dev+1-key.pem;
15
-
16
- location / {
17
- proxy_pass http://host.docker.internal:8000;
18
-
19
- proxy_cache_bypass $no_cache;
20
- proxy_no_cache $no_cache;
21
-
22
- proxy_cache assistant;
23
- proxy_set_header Host $http_host;
24
- proxy_cache_key $request_method$request_uri$is_args$args;
25
- proxy_cache_lock on;
26
- proxy_cache_lock_timeout 10s;
27
- proxy_cache_use_stale error timeout updating;
28
- proxy_cache_background_update on;
29
- add_header X-Cache-Status $upstream_cache_status;
30
- }
31
- }
32
-
33
- server {
34
- listen 443 ssl;
35
- listen [::]:443 ssl;
36
- server_name assistant.dev;
12
+ server_name _;
37
13
ssl_certificate /etc/nginx/ssl/assistant.dev+1.pem;
38
14
ssl_certificate_key /etc/nginx/ssl/assistant.dev+1-key.pem;
39
15
@@ -53,24 +29,3 @@ server {
53
29
add_header X-Cache-Status $upstream_cache_status;
54
30
}
55
31
}
56
-
57
- server {
58
- listen 80;
59
- server_name _;
60
-
61
- location / {
62
- proxy_pass http://host.docker.internal:8000;
63
-
64
- proxy_cache_bypass $no_cache;
65
- proxy_no_cache $no_cache;
66
-
67
- proxy_cache assistant;
68
- proxy_set_header Host $http_host;
69
- proxy_cache_key $request_method$request_uri$is_args$args;
70
- proxy_cache_lock on;
71
- proxy_cache_lock_timeout 10s;
72
- proxy_cache_use_stale error timeout updating;
73
- proxy_cache_background_update on;
74
- add_header X-Cache-Status $upstream_cache_status;
75
- }
76
- }
0 commit comments