From a1aed20c23b3dc65c592468c173f8ad947c20955 Mon Sep 17 00:00:00 2001 From: zino Date: Sun, 26 Nov 2023 19:20:59 +0100 Subject: [PATCH] modified --- .gitignore | 2 +- config/50x.html | 28 ++++++++++++++++++++++++++++ config/index.html | 33 +++++++++++++++++++++++++++++++++ config/nginx.conf | 31 +++++++++++++++++++++++++++++++ docker-compose.yml | 1 - volumes/html/50x.html | 28 ++++++++++++++++++++++++++++ volumes/html/index.html | 33 +++++++++++++++++++++++++++++++++ 7 files changed, 154 insertions(+), 2 deletions(-) create mode 100644 config/50x.html create mode 100644 config/index.html create mode 100644 config/nginx.conf create mode 100644 volumes/html/50x.html create mode 100644 volumes/html/index.html diff --git a/.gitignore b/.gitignore index 5c57f39..24584e4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ # Ignore everything in the volume folder -volume/* +#volume/* # But not the .gitkeep file !volume/.gitkeep \ No newline at end of file diff --git a/config/50x.html b/config/50x.html new file mode 100644 index 0000000..ef0b355 --- /dev/null +++ b/config/50x.html @@ -0,0 +1,28 @@ + + + + + Error + + + + +

An error occurred.

+

Sorry, the page you are looking for is currently unavailable.
+ Please try again later.

+

If you are the system administrator of this resource then you should check + the error log for details.

+

Faithfully yours, nginx.

+ + + \ No newline at end of file diff --git a/config/index.html b/config/index.html new file mode 100644 index 0000000..3b8ca0b --- /dev/null +++ b/config/index.html @@ -0,0 +1,33 @@ + + + + + Welcome to nginx! + + + + +

Welcome to nginx!

+

If you see this page, the nginx web server is successfully installed and + working. Further configuration is required.

+ +

For online documentation and support please refer to + nginx.org.
+ Commercial support is available at + nginx.com. +

+ +

Thank you for using nginx.

+ + + \ No newline at end of file diff --git a/config/nginx.conf b/config/nginx.conf new file mode 100644 index 0000000..ee8c7fd --- /dev/null +++ b/config/nginx.conf @@ -0,0 +1,31 @@ +user nginx; +worker_processes auto; + +error_log /var/log/nginx/error.log notice; +pid /var/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" "$http_x_forwarded_for"'; + + access_log /var/log/nginx/access.log main; + + sendfile on; + #tcp_nopush on; + + keepalive_timeout 65; + + #gzip on; + + include /etc/nginx/conf.d/*.conf; +} \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index f5a4f26..cf926c7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,7 +10,6 @@ services: - 80:80 - 443:443 volumes: - - ./volumes/nginx:/etc/nginx - ./volumes/html:/usr/share/nginx/html - /etc/letsencrypt:/etc/letsencrypt diff --git a/volumes/html/50x.html b/volumes/html/50x.html new file mode 100644 index 0000000..ef0b355 --- /dev/null +++ b/volumes/html/50x.html @@ -0,0 +1,28 @@ + + + + + Error + + + + +

An error occurred.

+

Sorry, the page you are looking for is currently unavailable.
+ Please try again later.

+

If you are the system administrator of this resource then you should check + the error log for details.

+

Faithfully yours, nginx.

+ + + \ No newline at end of file diff --git a/volumes/html/index.html b/volumes/html/index.html new file mode 100644 index 0000000..3b8ca0b --- /dev/null +++ b/volumes/html/index.html @@ -0,0 +1,33 @@ + + + + + Welcome to nginx! + + + + +

Welcome to nginx!

+

If you see this page, the nginx web server is successfully installed and + working. Further configuration is required.

+ +

For online documentation and support please refer to + nginx.org.
+ Commercial support is available at + nginx.com. +

+ +

Thank you for using nginx.

+ + + \ No newline at end of file