Setup remote repository:
ssh [email protected]
mkdir my_project.git
cd my_project.git
git init --bare
On local machine:
cd my_project
Setup remote repository:
ssh [email protected]
mkdir my_project.git
cd my_project.git
git init --bare
On local machine:
cd my_project
# The command finds the most recent tag that is reachable from a commit. | |
# If the tag points to the commit, then only the tag is shown. | |
# Otherwise, it suffixes the tag name with the number of additional commits on top of the tagged object | |
# and the abbreviated object name of the most recent commit. | |
git describe | |
# With --abbrev set to 0, the command can be used to find the closest tagname without any suffix: | |
git describe --abbrev=0 | |
# other examples |
# Append to apache2.conf | |
# Dont forget to repalce [user] [password] [dbname] with you own info | |
# ref: https://httpd.apache.org/docs/2.4/mod/mod_dbd.html | |
# ref: https://httpd.apache.org/docs/2.4/mod/mod_authn_dbd.html | |
<IfModule mod_authn_dbd.c> | |
DBDriver mysql | |
DBDParams host=localhost,port=3306,user=apache,pass=apache,dbname=auth | |
DBDMin 2 | |
DBDKeep 8 |
Listen 8080 | |
NameVirtualHost *:8080 | |
<VirtualHost *:8080> | |
ServerName <%= @fqdn %>:8080 | |
SSLEngine on | |
SSLProtocol -ALL +SSLv3 +TLSv1 | |
SSLCipherSuite ALL:!ADH:!RC4:+HIGH:+MEDIUM:!LOW:!SSLv2:!EXP:!RC2 | |
SSLCertificateKeyFile /var/lib/puppet/ssl/private_keys/<%= @fqdn %>.pem |
# Apache configuration for running local browser against a locally running xxxx for manual smartcard testing | |
# Listen 4433 | |
<VirtualHost 127.0.0.1:4433> | |
# Real men use mod_proxy | |
DocumentRoot "/nowhere" | |
ServerName local-apache | |
ServerAdmin [email protected] |
<VirtualHost *:443> | |
ServerName centos.installer | |
DocumentRoot "/var/www" | |
## Directories, there should at least be a declaration for /var/www | |
<Directory "/var/www"> | |
Options SymLinksIfOwnerMatch |