Добавил еще один сайт blog.nuk-svk.ru
This commit is contained in:
parent
f97af0a81d
commit
15c934a98c
@ -6,7 +6,7 @@ volumes:
|
||||
|
||||
services:
|
||||
server:
|
||||
image: gitea/gitea:1
|
||||
image: gitea/gitea:latest
|
||||
env_file:
|
||||
- .env
|
||||
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
|
||||
restart: always
|
||||
environment:
|
||||
- VIRTUAL_HOST=nuk-svk.ru
|
||||
- LETSENCRYPT_HOST=nuk-svk.ru
|
||||
- VIRTUAL_HOST=nuk-svk.ru,blog.nuk-svk.ru
|
||||
- LETSENCRYPT_HOST=nuk-svk.ru,blog.nuk-svk.ru
|
||||
#- VIRTUAL_PORT=443
|
||||
#- VIRTUAL_PROTO=https
|
||||
volumes:
|
||||
- vhost.d:/etc/nginx/vhost.d
|
||||
- html:/usr/share/nginx/html
|
||||
- conf:/etc/nginx/conf.d
|
||||
|
||||
volumes:
|
||||
vhost.d:
|
||||
html:
|
||||
conf:
|
||||
|
||||
networks:
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user