forked from greenpau/caddy-git
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolves: greenpau#10
- Loading branch information
Showing
8 changed files
with
67 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
debug | ||
local_certs | ||
http_port 8080 | ||
https_port 8443 | ||
|
||
order git before respond | ||
|
||
git { | ||
repo authp.github.io { | ||
base_dir {$HOME}/tmp/authp/gitcfg/ | ||
url https://github.com/authp/authp.github.io.git | ||
branch gh-pages | ||
post pull exec { | ||
name Pager | ||
command /usr/bin/echo | ||
args "pulled authp.github.io repo" | ||
} | ||
} | ||
} | ||
} | ||
|
||
127.0.0.1, localhost { | ||
respond /version* "1.0.0" 200 | ||
git /update/authp.github.io update repo authp.github.io | ||
root * {$HOME}/tmp/authp/gitcfg/authp.github.io | ||
file_server | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,11 +6,11 @@ | |
|
||
git { | ||
repo authp.github.io { | ||
base_dir ./tmp/ssh | ||
base_dir {$HOME}/tmp/ssh | ||
url [email protected]:authp/authp.github.io.git | ||
# auth key ~/.ssh/id_rsa passphrase {env.MY_SSH_KEY_PASSPHRASE} | ||
# auth key ~/.ssh/id_rsa passphrase {env.MY_SSH_KEY_PASSPHRASE} no_strict_host_key_check | ||
auth key ~/.ssh/id_rsa | ||
# auth key {$HOME}/.ssh/id_rsa passphrase {env.MY_SSH_KEY_PASSPHRASE} | ||
# auth key {$HOME}/.ssh/id_rsa passphrase {env.MY_SSH_KEY_PASSPHRASE} no_strict_host_key_check | ||
auth key {$HOME}/.ssh/id_rsa | ||
branch gh-pages | ||
} | ||
} | ||
|
@@ -25,7 +25,7 @@ | |
} | ||
route { | ||
file_server { | ||
root ./tmp/ssh/authp.github.io | ||
root {$HOME}/tmp/ssh/authp.github.io | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters