Migrate from Kirby CMS to Hugo with Gokarna theme
- Remove all Kirby/PHP files - Add Hugo config with Gokarna theme as git submodule - Add nginx + Hugo Dockerfile replacing PHP/Apache - Update deploy.php to run hugo after git pull - Update .gitignore for Hugo output Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
21
kirby/nginx.conf
Normal file
21
kirby/nginx.conf
Normal file
@@ -0,0 +1,21 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name robbis.space;
|
||||
|
||||
root /var/www/html/public;
|
||||
index index.html;
|
||||
|
||||
# Serve static Hugo output
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
# deploy.php webhook handler
|
||||
location = /deploy.php {
|
||||
root /var/www/html;
|
||||
fastcgi_pass 127.0.0.1:9000;
|
||||
fastcgi_index deploy.php;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME /var/www/html/deploy.php;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user