-
Notifications
You must be signed in to change notification settings - Fork 2
/
nginx.conf
37 lines (32 loc) · 968 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
server {
listen 3000;
server_name socialkyc.io staging.socialkyc.io;
location ~ \.(html|css|js|svg|png|jpg|ttf|woff2)$ {
root /app/dist/frontend;
expires max;
rewrite ^/index.html / permanent;
autoindex off;
}
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;
}
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.socialkyc.io;
rewrite ^ https://socialkyc.io$request_uri? permanent;
expires max;
}