mirror of
https://github.com/msfjarvis/server-config
synced 2025-08-14 14:07:02 +05:30
Caddyfile: Add staging site
Copy of main site with draft, expired and future posts enabled. Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
parent
6ef60f9c5e
commit
aef8338ca6
1 changed files with 14 additions and 0 deletions
14
Caddyfile
14
Caddyfile
|
@ -73,3 +73,17 @@ https://git.msfjarvis.website {
|
|||
import proxy_config
|
||||
}
|
||||
}
|
||||
|
||||
https://staging.msfjarvis.website {
|
||||
import base_config
|
||||
import compression_config
|
||||
root /var/www/msfjarvis.website.staging/
|
||||
git {
|
||||
repo https://github.com/msfjarvis/msfjarvis.website
|
||||
branch src
|
||||
path ../site_raw_staging
|
||||
hook /githook {$WEBHOOK_PASSWORD}
|
||||
then git submodule update --init --recursive
|
||||
then hugo --destination=/var/www/msfjarvis.website.staging --minify -DEFb=https://staging.msfjarvis.website
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue