Adds gitea
This commit is contained in:
parent
c7cf4c7db3
commit
aad1c64be4
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@ wallabag
|
|||||||
nginx-log
|
nginx-log
|
||||||
certs
|
certs
|
||||||
pihole-data
|
pihole-data
|
||||||
|
gitea-data
|
||||||
|
@ -62,3 +62,23 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./pihole-data/pihole:/etc/pihole
|
- ./pihole-data/pihole:/etc/pihole
|
||||||
- ./pihole-data/dnsmasq:/etc/dnsmasq.d
|
- ./pihole-data/dnsmasq:/etc/dnsmasq.d
|
||||||
|
gitea:
|
||||||
|
image: gitea/gitea:latest
|
||||||
|
environment:
|
||||||
|
APP_NAME: "Code dot abhinavsarkar.net"
|
||||||
|
RUN_MODE: prod
|
||||||
|
SSH_DOMAIN: code.abhinavsarkar.net
|
||||||
|
SSH_PORT: 222
|
||||||
|
DB_TYPE: postgres
|
||||||
|
DB_HOST: "db:5432"
|
||||||
|
DB_USER: postgres
|
||||||
|
DB_PASSWD: ${PG_PASSWORD}
|
||||||
|
INSTALL_LOCK: "false"
|
||||||
|
SECRET_KEY: ${GT_SECRET_KEY}
|
||||||
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- ./gitea-data:/data
|
||||||
|
ports:
|
||||||
|
- "222:22"
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
23
nginx-conf/gitea.conf
Normal file
23
nginx-conf/gitea.conf
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
server {
|
||||||
|
listen 443 ssl;
|
||||||
|
server_name code.abhinavsarkar.net;
|
||||||
|
|
||||||
|
ssl_certificate /etc/nginx/certs/fullchain1.pem;
|
||||||
|
ssl_certificate_key /etc/nginx/certs/privkey1.pem;
|
||||||
|
|
||||||
|
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
||||||
|
ssl_prefer_server_ciphers on;
|
||||||
|
ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
|
||||||
|
|
||||||
|
proxy_set_header X-Real-IP $remote_addr; # pass on real client IP
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://gitea:3000;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name code.abhinavsarkar.net;
|
||||||
|
return 301 https://$host$request_uri;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user