-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
41 lines (32 loc) · 842 Bytes
/
nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
worker_processes 10;
events { worker_connections 1024; }
http {
gzip on;
gzip_types text/css text/javascript application/x-javascript application/json;
server {
listen 80;
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location /api/admin/ {
return 404;
}
location /api {
rewrite ^/api/(.*)$ /$1 break;
proxy_pass http://api:5000;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header X-Forwarded-For $remote_addr;
proxy_connect_timeout 300;
proxy_send_timeout 300;
proxy_read_timeout 300;
send_timeout 300;
}
location / {
root /app;
try_files $uri /index.html;
include /etc/nginx/mime.types;
index index.html;
}
}
}