-
Notifications
You must be signed in to change notification settings - Fork 1
/
nginx.conf
43 lines (37 loc) · 1.12 KB
/
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
42
43
server {
listen 3000;
server_name ctypehub.galaniprojects.de stg.ctypehub.galaniprojects.de;
location ~ \.(html|css|js|svg|png|jpg|ttf|woff2)$ {
root /app/dist/client;
expires max;
rewrite ^/index.html / permanent;
autoindex off;
error_page 404 /404;
location ~ ^/404$ {
proxy_pass http://127.0.0.1:4000;
}
}
location / {
proxy_pass http://127.0.0.1:4000;
proxy_http_version 1.1;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_intercept_errors on;
}
brotli on;
brotli_types text/plain text/css application/json application/javascript text/javascript image/svg+xml;
gzip on;
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/javascript text/javascript image/svg+xml;
}
server {
listen 3000;
server_name www.ctypehub.galaniprojects.de;
rewrite ^ https://ctypehub.galaniprojects.de$request_uri? permanent;
expires max;
}