-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.conf
More file actions
44 lines (35 loc) · 1.07 KB
/
nginx.conf
File metadata and controls
44 lines (35 loc) · 1.07 KB
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
42
43
44
events {}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 443 ssl;
server_name simple-retro.ephemeral.dev.br;
gzip on;
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
ssl_certificate /etc/ssl/retro-cert.pem;
ssl_certificate_key /etc/ssl/retro-key.key;
include /etc/nginx/mime.types;
location /api/hello/ {
proxy_pass http://backend:7878/api/hello/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location /api/ {
proxy_pass http://backend:7878/api/;
}
location /static/ {
alias /etc/nginx/html/static/;
sendfile on;
sendfile_max_chunk 1m;
tcp_nopush on;
keepalive_timeout 65;
}
location / {
try_files $uri /index.html;
}
}
}