wip
This commit is contained in:
parent
8218ddb930
commit
a1d76b6d5b
2 changed files with 9 additions and 33 deletions
|
|
@ -187,6 +187,14 @@ in {
|
|||
ports = ["9090:8080"];
|
||||
user = "0"; # run as root
|
||||
};
|
||||
|
||||
"blog-quine" = {
|
||||
autoStart = true;
|
||||
image = "quineglobal/blog-quine@sha256:";
|
||||
volumes = [];
|
||||
environment = {};
|
||||
ports = ["3010:8080"];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -74,40 +74,8 @@
|
|||
|
||||
root = "/etc/pullomatic/com_quinefoundation_blog/markdown-blog";
|
||||
|
||||
locations."~ /.git(/.*)$ " = {
|
||||
extraConfig = ''
|
||||
deny all;
|
||||
return 404;
|
||||
'';
|
||||
};
|
||||
|
||||
locations."~ ^/static(/.*)?$" = {
|
||||
extraConfig = ''
|
||||
autoindex on;
|
||||
root /etc/pullomatic/com_quinefoundation_blog/static;
|
||||
rewrite ^/static(?<query>(/[^/\\s]*)*)$ "$query" break;
|
||||
'';
|
||||
};
|
||||
|
||||
locations."/" = {
|
||||
extraConfig = ''
|
||||
rewrite ^/?$ /blog-posts-list.php last;
|
||||
rewrite ^/post/?$ /blog-posts-list.php last;
|
||||
rewrite ^/about/?$ /about.php last;
|
||||
rewrite ^/credits/?$ /credits.php last;
|
||||
rewrite ^/post/([-a-zA-Z0-9]*)$ /blog-page.php?page=$1.md last;
|
||||
rewrite ^/rss.xml$ /rss.php last;
|
||||
try_files $uri $uri/ =404;
|
||||
index index.php index.html index.htm;
|
||||
'';
|
||||
};
|
||||
|
||||
locations."~ \.php$" = {
|
||||
extraConfig = ''
|
||||
include ${pkgs.nginx}/conf/fastcgi.conf;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_pass unix:${config.services.phpfpm.pools.main.socket};
|
||||
'';
|
||||
proxyPass = "http://127.0.0.1:3010/"; # pass through to docker container
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue