-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
executable file
·47 lines (35 loc) · 1.02 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
44
45
46
47
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
client_max_body_size 10M;
autoindex_exact_size off; # display sizes in a human-readable format
autoindex_localtime on; # display the time in the local timezone
server {
listen 7777;
server_name localhost 192.168.1.234;
# root /home/dovie/repos/microbook-maker/fe/build;
root /app/fe/build;
location / {
index index.html;
}
location /uploads/ {
# alias /home/dovie/repos/microbook-maker/be/uploads/;
alias /app/be/uploads/;
autoindex on;
}
location /history/ {
# alias /home/dovie/repos/microbook-maker/be/generated/;
alias /app/be/generated/;
autoindex on;
}
location ~ ^/(api) {
proxy_pass http://localhost:3001;
}
}
}