Add portfolio
This commit is contained in:
parent
0bbb72f043
commit
f0e51b302d
2 changed files with 25 additions and 0 deletions
|
|
@ -34,6 +34,10 @@
|
|||
["atcsim"]
|
||||
"git@github.com:philip-peterson/ATC-Sim.git"
|
||||
"master")
|
||||
(makeConfigFile
|
||||
["my-portfolio"]
|
||||
"git@github.com:philip-peterson/my-portfolio.git"
|
||||
"main")
|
||||
];
|
||||
|
||||
configDir =
|
||||
|
|
|
|||
|
|
@ -34,6 +34,12 @@
|
|||
'';
|
||||
};
|
||||
|
||||
locations."/games/atcsim" = {
|
||||
extraConfig = ''
|
||||
return 301 /games/atcsim/;
|
||||
'';
|
||||
};
|
||||
|
||||
locations."~ ^/games/atcsim(/[^/\\s]*)*$" = {
|
||||
extraConfig = ''
|
||||
index index.html index.htm;
|
||||
|
|
@ -43,6 +49,21 @@
|
|||
'';
|
||||
};
|
||||
|
||||
locations."/portfolio" = {
|
||||
extraConfig = ''
|
||||
return 301 /portfolio/;
|
||||
'';
|
||||
};
|
||||
|
||||
locations."~ ^/portfolio/" = {
|
||||
extraConfig = ''
|
||||
index index.html index.htm;
|
||||
rewrite ^/portfolio/?$ "/index.html" break;
|
||||
rewrite ^/portfolio(?<query>(/[^/\\s]*)*)$ "$query" break;
|
||||
root /etc/pullomatic/my-portfolio;
|
||||
'';
|
||||
};
|
||||
|
||||
locations."~ ^/echo(?<query>((/[^/\\s]*)*))$" = {
|
||||
extraConfig = ''
|
||||
add_header Content-Type text/plain;
|
||||
|
|
|
|||
Loading…
Reference in a new issue