1
- # For more information on configuration, see:
2
- # * Official English Documentation: http://nginx.org/en/docs/
3
- # * Official Russian Documentation: http://nginx.org/ru/docs/
1
+ server {
2
+ listen 80 default_server ;
3
+ listen [::]:80 default_server ;
4
+ server_name 127.0.0.1 ;
4
5
5
- user nginx;
6
- worker_processes auto;
7
- error_log /var/log/nginx/error.log;
8
- pid /run/nginx.pid;
6
+ root /fsm;
9
7
10
- # Load dynamic modules. See /usr/share/doc/nginx/README.dynamic.
11
- include /usr/share/nginx/modules/*.conf;
12
-
13
- events {
14
- worker_connections 1024 ;
15
- }
16
-
17
- http {
18
-
19
- include /etc/nginx/mime.types;
20
- default_type application/octet-stream;
21
-
22
- sendfile on ;
23
8
client_max_body_size 5M ;
24
9
client_body_buffer_size 5M ;
25
10
@@ -30,27 +15,19 @@ http {
30
15
31
16
keepalive_timeout 300 ;
32
17
33
- server {
34
- listen 80 default_server ;
35
- listen [::]:80 default_server ;
36
- server_name 127.0.0.1 ;
37
-
38
- root /fsm;
18
+ location / {
19
+ proxy_pass http://fsm_server:8001;
39
20
40
- location / {
41
- proxy_pass http://fsm_server:8001;
42
-
43
- proxy_set_header Host $http_host ;
44
- proxy_set_header X-Real-IP $remote_addr ;
45
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for ;
46
- proxy_set_header X-Forwarded-Proto $scheme ;
47
- proxy_connect_timeout 300s ;
48
- proxy_send_timeout 300s ;
49
- proxy_read_timeout 300s ;
50
- }
21
+ proxy_set_header Host $http_host ;
22
+ proxy_set_header X-Real-IP $remote_addr ;
23
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for ;
24
+ proxy_set_header X-Forwarded-Proto $scheme ;
25
+ proxy_connect_timeout 300s ;
26
+ proxy_send_timeout 300s ;
27
+ proxy_read_timeout 300s ;
28
+ }
51
29
52
- location /static {
53
- alias /www/fsm/backend/static;
54
- }
30
+ location /static {
31
+ alias /www/fsm_server/backend/static;
55
32
}
56
33
}
0 commit comments