Dockerize

This commit is contained in:
Pavel Zilke 2024-07-15 16:31:32 +03:00
parent d01d0c63e0
commit 32730238e3
8 changed files with 88 additions and 16 deletions

4
Dockerfile Normal file
View file

@ -0,0 +1,4 @@
FROM nginx:stable-alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY ./html/ /usr/share/nginx/html/

View file

@ -1,5 +0,0 @@
<html>
<body>
<span>Физическое лицо</span>
</body>
</html>

8
html/fl/index.html Normal file
View file

@ -0,0 +1,8 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<html>
<body>
<a href="./app/">Приложение для Физ. лиц</a>
</body>
</html>

10
html/index.html Normal file
View file

@ -0,0 +1,10 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<html>
<body>
<a href="./ul/">Юридическое лицо</a>
</br>
<a href="./fl/">Физическое лицо</a>
</body>
</html>

8
html/ul/index.html Normal file
View file

@ -0,0 +1,8 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<html>
<body>
<a href="./app/">Приложение для Юр. лиц</a>
</body>
</html>

View file

@ -1,6 +0,0 @@
<html>
<body>
<button>Юридическое лицо</button>
<button>Физическое лицо</button>
</body>
</html>

58
nginx.conf Normal file
View file

@ -0,0 +1,58 @@
log_format nginx_main
'$remote_addr - $remote_user [$time_local] $request '
'"$status" $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for" '
'"$request_filename" "$gzip_ratio" $upstream_response_time server: $host : $document_root $fastcgi_script_name ';
server {
listen 80 default;
access_log /var/log/nginx/access.log nginx_main;
error_log /var/log/nginx/error.log error;
sendfile off;
charset utf-8;
client_max_body_size 32m;
##
# `gzip` Settings
#
#
gzip on;
gzip_disable "msie6";
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_min_length 256;
gzip_types
application/atom+xml
application/geo+json
application/javascript
application/x-javascript
application/json
application/ld+json
application/manifest+json
application/rdf+xml
application/rss+xml
application/xhtml+xml
application/xml
font/eot
font/otf
font/ttf
image/svg+xml
text/css
text/javascript
text/plain
text/xml;
#location / {
# index index.html;
# expires -1;
# try_files $uri $uri/ $uri/index.html;
#}
root /usr/share/nginx/html;
}

View file

@ -1,5 +0,0 @@
<html>
<body>
<span>Юридическое лицо</span>
</body>
</html>