Добавил еще один сайт blog.nuk-svk.ru
This commit is contained in:
parent
f97af0a81d
commit
15c934a98c
@ -6,7 +6,7 @@ volumes:
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
server:
|
server:
|
||||||
image: gitea/gitea:1
|
image: gitea/gitea:latest
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
environment:
|
environment:
|
||||||
|
63
git.nuk-svk.ru/static/default.conf
Normal file
63
git.nuk-svk.ru/static/default.conf
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
|
server_name localhost;
|
||||||
|
|
||||||
|
#access_log /var/log/nginx/host.access.log main;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
root /usr/share/nginx/html/;
|
||||||
|
index index.html index.htm;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /index.html {
|
||||||
|
root /usr/share/nginx/html/blog/;
|
||||||
|
index index.html index.htm;
|
||||||
|
}
|
||||||
|
|
||||||
|
#error_page 404 /404.html;
|
||||||
|
|
||||||
|
# redirect server error pages to the static page /50x.html
|
||||||
|
#
|
||||||
|
error_page 500 502 503 504 /50x.html;
|
||||||
|
location = /50x.html {
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
}
|
||||||
|
|
||||||
|
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
|
||||||
|
#
|
||||||
|
#location ~ \.php$ {
|
||||||
|
# proxy_pass http://127.0.0.1;
|
||||||
|
#}
|
||||||
|
|
||||||
|
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
|
||||||
|
#
|
||||||
|
#location ~ \.php$ {
|
||||||
|
# root html;
|
||||||
|
# fastcgi_pass 127.0.0.1:9000;
|
||||||
|
# fastcgi_index index.php;
|
||||||
|
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
|
||||||
|
# include fastcgi_params;
|
||||||
|
#}
|
||||||
|
|
||||||
|
# deny access to .htaccess files, if Apache's document root
|
||||||
|
# concurs with nginx's one
|
||||||
|
#
|
||||||
|
#location ~ /\.ht {
|
||||||
|
# deny all;
|
||||||
|
#}
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
|
server_name blog.nuk-svk.ru;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
return 301 $scheme://nuk-svk.ru/blog/;
|
||||||
|
#root /usr/share/nginx/html/blog;
|
||||||
|
#index index.html index.htm;
|
||||||
|
#proxy_pass http://localhost/blog;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -6,17 +6,19 @@ services:
|
|||||||
container_name: nginx-static
|
container_name: nginx-static
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
- VIRTUAL_HOST=nuk-svk.ru
|
- VIRTUAL_HOST=nuk-svk.ru,blog.nuk-svk.ru
|
||||||
- LETSENCRYPT_HOST=nuk-svk.ru
|
- LETSENCRYPT_HOST=nuk-svk.ru,blog.nuk-svk.ru
|
||||||
#- VIRTUAL_PORT=443
|
#- VIRTUAL_PORT=443
|
||||||
#- VIRTUAL_PROTO=https
|
#- VIRTUAL_PROTO=https
|
||||||
volumes:
|
volumes:
|
||||||
- vhost.d:/etc/nginx/vhost.d
|
- vhost.d:/etc/nginx/vhost.d
|
||||||
- html:/usr/share/nginx/html
|
- html:/usr/share/nginx/html
|
||||||
|
- conf:/etc/nginx/conf.d
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
vhost.d:
|
vhost.d:
|
||||||
html:
|
html:
|
||||||
|
conf:
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user