Starting migration from gogs to gitea

Gitea is a more trustable project.
This commit is contained in:
2018-10-30 14:50:33 +01:00
parent 40547fc477
commit 7ef72a70df
14 changed files with 303 additions and 167 deletions

9
tmpl/51-gitea-nat_rules Normal file
View File

@ -0,0 +1,9 @@
#!/bin/bash
#
# Rules for SSH git clone
#
%if %%getVar('mode_conteneur_actif','non') == 'oui'
/sbin/iptables -A eth0-cont -d %%adresse_ip_forge/32 -p tcp -m tcp --dport 22 --tcp-flags FIN,SYN,RST,ACK SYN -j ACCEPT
/sbin/iptables -t nat -A PREROUTING -i eth0 -s 0/0 -p tcp --syn --dport %%git_ssh_port -j DNAT --to-destination %%container_ip_forge:22
%end if