generated from amosproj/amos202Xss0Y-projname
-
Notifications
You must be signed in to change notification settings - Fork 2
/
nginx.conf
41 lines (36 loc) · 906 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
server {
listen 80; #ipv4
#listen [::]:80; #ipv6
server_name ${HOST};
# rewrite url if it doesent access via the actual domain name
#if ($http_host !~ "^${HOST}") {
# rewrite ^(.*)$ $scheme://${HOST}/$1 redirect;
#}
# size limits
client_max_body_size 1000M;
proxy_buffer_size 1024k;
proxy_buffers 4 1024k;
proxy_busy_buffers_size 1024k;
# compression
gzip on;
gzip_types
text/plain
text/css
text/js
text/xml
text/javascript
application/javascript
application/json
application/xml
application/rss+xml
image/svg+xml;
# locations
location /api {
proxy_pass http://backend:8080/; # backend kommt von namen des docker-compose-services
}
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html?$args;
}
}