Skip to content

Commit 791a85e

Browse files
committed
Simpler nginx conf
1 parent e341d0f commit 791a85e

File tree

1 file changed

+1
-46
lines changed

1 file changed

+1
-46
lines changed

nginx/servers.conf

Lines changed: 1 addition & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,7 @@ map $http_cookie $no_cache {
99
server {
1010
listen 443 ssl;
1111
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 _;
3713
ssl_certificate /etc/nginx/ssl/assistant.dev+1.pem;
3814
ssl_certificate_key /etc/nginx/ssl/assistant.dev+1-key.pem;
3915

@@ -53,24 +29,3 @@ server {
5329
add_header X-Cache-Status $upstream_cache_status;
5430
}
5531
}
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

Comments
 (0)