-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.txt
60 lines (48 loc) · 1.64 KB
/
test.txt
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
48
49
50
51
52
53
54
55
56
57
58
59
60
hi this is my nginx part in docker compose file : nginx:
container_name: nginx
image: nginx:1.27.3
command: nginx -g 'daemon off;'
ports:
- "80:80"
networks:
- main
restart: always
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
depends_on:
- app
, and this is my nginx.conf : user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log notice;
pid /run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent"';
access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
#gzip on;
#gzip_disable "msie6";
#gzip_min_length 1000;
#gzip_proxied any;
#gzip_vary on;
#gzip_comp_level 6;
#gzip_buffers 16 8k;
#gzip_http_version 1.1;
server {
server_name storeyab.com;
listen 80;
location = /favicon.ico { access_log off; log_not_found off; }
location /static_in_env/ {
root /home/code/;
}
}
}
, but i dont know in this line of my nginx.conf : root /home/code/; , how can i set adress for root