ソースを参照

custom nginx.conf

master
Ignacio Falco 4年前
コミット
3c46952acb
2個のファイルの変更36行の追加0行の削除
  1. 1
    0
      docker-compose.yml
  2. 35
    0
      sites/nginx.conf

+ 1
- 0
docker-compose.yml ファイルの表示

@@ -6,4 +6,5 @@ services:
6 6
         image: nginx:1.18-alpine
7 7
         volumes: 
8 8
             - ./sites/sites-available:/etc/nginx/conf.d
9
+            - ./nginx.conf:/etc/nginx/nginx.conf
9 10
         network_mode: host

+ 35
- 0
sites/nginx.conf ファイルの表示

@@ -0,0 +1,35 @@
1
+user  nginx;
2
+worker_processes  auto;
3
+
4
+error_log  /var/log/nginx/error.log warn;
5
+pid        /var/run/nginx.pid;
6
+
7
+
8
+events {
9
+    worker_connections  1024;
10
+}
11
+
12
+
13
+http {
14
+    include       /etc/nginx/mime.types;
15
+    default_type  application/octet-stream;
16
+
17
+    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
18
+                      '$status $body_bytes_sent "$http_referer" '
19
+                      '"$http_user_agent" "$http_x_forwarded_for"';
20
+
21
+    access_log  /var/log/nginx/access.log  main;
22
+
23
+    sendfile        on;
24
+    #tcp_nopush     on;
25
+
26
+    keepalive_timeout  65;
27
+
28
+    #gzip  on;
29
+
30
+    include /etc/nginx/conf.d/*.conf;
31
+}
32
+
33
+stream {
34
+    include /etc/nginx/conf.d/*-stream.conf
35
+}

読み込み中…
キャンセル
保存