Refac
This commit is contained in:
1
services/gitea/BACKUP.adoc
Normal file
1
services/gitea/BACKUP.adoc
Normal file
@@ -0,0 +1 @@
|
||||
/mnt/Teka2/gitea-data
|
||||
27
services/gitea/docker-compose.yml
Normal file
27
services/gitea/docker-compose.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
version: "3"
|
||||
|
||||
networks:
|
||||
gitea:
|
||||
external: false
|
||||
|
||||
services:
|
||||
server:
|
||||
image: gitea/gitea
|
||||
container_name: gitea
|
||||
environment:
|
||||
- USER_UID=1000
|
||||
- USER_GID=1000
|
||||
- GITEA__database__DB_TYPE=postgres
|
||||
- GITEA__database__HOST=192.168.0.101:5432
|
||||
- GITEA__database__NAME=gitea
|
||||
- GITEA__database__USER=gitea
|
||||
- GITEA__database__PASSWD=mhIjXjG238w8TtpuB9ny
|
||||
restart: always
|
||||
networks:
|
||||
- gitea
|
||||
volumes:
|
||||
- /mnt/Teka2/gitea-data:/data
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
ports:
|
||||
- "3005:3005"
|
||||
27
services/gitea/gitea.nginx.conf
Normal file
27
services/gitea/gitea.nginx.conf
Normal file
@@ -0,0 +1,27 @@
|
||||
server {
|
||||
server_name gitea.skazochnik.spb.ru;
|
||||
location / {
|
||||
proxy_pass http://localhost:3005/;
|
||||
client_max_body_size 0;
|
||||
}
|
||||
|
||||
|
||||
listen 443 ssl; # managed by Certbot
|
||||
ssl_certificate /etc/letsencrypt/live/gitea.skazochnik.spb.ru/fullchain.pem; # managed by Certbot
|
||||
ssl_certificate_key /etc/letsencrypt/live/gitea.skazochnik.spb.ru/privkey.pem; # managed by Certbot
|
||||
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
||||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
||||
|
||||
}
|
||||
|
||||
server {
|
||||
if ($host = gitea.skazochnik.spb.ru) {
|
||||
return 301 https://$host$request_uri;
|
||||
} # managed by Certbot
|
||||
|
||||
|
||||
server_name gitea.skazochnik.spb.ru;
|
||||
listen 80;
|
||||
return 404; # managed by Certbot
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user