Add portfolio

This commit is contained in:
Philip Peterson 2025-05-05 19:09:26 -07:00
parent 0bbb72f043
commit f0e51b302d
No known key found for this signature in database
GPG key ID: 354311183FC6519B
2 changed files with 25 additions and 0 deletions

View file

@ -34,6 +34,10 @@
["atcsim"] ["atcsim"]
"git@github.com:philip-peterson/ATC-Sim.git" "git@github.com:philip-peterson/ATC-Sim.git"
"master") "master")
(makeConfigFile
["my-portfolio"]
"git@github.com:philip-peterson/my-portfolio.git"
"main")
]; ];
configDir = configDir =

View file

@ -34,6 +34,12 @@
''; '';
}; };
locations."/games/atcsim" = {
extraConfig = ''
return 301 /games/atcsim/;
'';
};
locations."~ ^/games/atcsim(/[^/\\s]*)*$" = { locations."~ ^/games/atcsim(/[^/\\s]*)*$" = {
extraConfig = '' extraConfig = ''
index index.html index.htm; 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]*)*))$" = { locations."~ ^/echo(?<query>((/[^/\\s]*)*))$" = {
extraConfig = '' extraConfig = ''
add_header Content-Type text/plain; add_header Content-Type text/plain;