Add philippeterson.com
This commit is contained in:
parent
1d9de08c3d
commit
aed3fa1e4d
1 changed files with 59 additions and 59 deletions
118
nixos/nginx.nix
118
nixos/nginx.nix
|
|
@ -48,74 +48,74 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
#"philippeterson.com" = {
|
"philippeterson.com" = {
|
||||||
# enableACME = true; # Enable Let's Encrypt certificate for HTTPS
|
enableACME = true; # Enable Let's Encrypt certificate for HTTPS
|
||||||
# forceSSL = false; # Redirect HTTP to HTTPS?
|
forceSSL = false; # Redirect HTTP to HTTPS?
|
||||||
# addSSL = true;
|
addSSL = true;
|
||||||
|
|
||||||
# root = "/etc/pullomatic/com_philippeterson";
|
root = "/etc/pullomatic/com_philippeterson";
|
||||||
|
|
||||||
# locations."~ /.git(/.*)$ " = {
|
locations."~ /.git(/.*)$ " = {
|
||||||
# extraConfig = ''
|
extraConfig = ''
|
||||||
# deny all;
|
deny all;
|
||||||
# return 404;
|
return 404;
|
||||||
# '';
|
'';
|
||||||
# };
|
};
|
||||||
|
|
||||||
# locations."/games/atcsim" = {
|
locations."/games/atcsim" = {
|
||||||
# extraConfig = ''
|
extraConfig = ''
|
||||||
# return 301 /games/atcsim/;
|
return 301 /games/atcsim/;
|
||||||
# '';
|
'';
|
||||||
# };
|
};
|
||||||
|
|
||||||
# locations."~ ^/games/atcsim(/[^/\\s]*)*$" = {
|
locations."~ ^/games/atcsim(/[^/\\s]*)*$" = {
|
||||||
# extraConfig = ''
|
extraConfig = ''
|
||||||
# index index.html index.htm;
|
index index.html index.htm;
|
||||||
# rewrite ^/games/atcsim/?$ "/index.html" break;
|
rewrite ^/games/atcsim/?$ "/index.html" break;
|
||||||
# rewrite ^/games/atcsim(?<query>(/[^/\\s]*)*)$ "$query" break;
|
rewrite ^/games/atcsim(?<query>(/[^/\\s]*)*)$ "$query" break;
|
||||||
# root /etc/pullomatic/atcsim;
|
root /etc/pullomatic/atcsim;
|
||||||
# '';
|
'';
|
||||||
# };
|
};
|
||||||
|
|
||||||
# locations."/portfolio" = {
|
locations."/portfolio" = {
|
||||||
# extraConfig = ''
|
extraConfig = ''
|
||||||
# return 301 /portfolio/;
|
return 301 /portfolio/;
|
||||||
# '';
|
'';
|
||||||
# };
|
};
|
||||||
|
|
||||||
# locations."~ ^/portfolio/" = {
|
locations."~ ^/portfolio/" = {
|
||||||
# extraConfig = ''
|
extraConfig = ''
|
||||||
# index index.html index.htm;
|
index index.html index.htm;
|
||||||
# rewrite ^/portfolio/?$ "/index.html" break;
|
rewrite ^/portfolio/?$ "/index.html" break;
|
||||||
# rewrite ^/portfolio(?<query>(/[^/\\s]*)*)$ "$query" break;
|
rewrite ^/portfolio(?<query>(/[^/\\s]*)*)$ "$query" break;
|
||||||
# root /etc/pullomatic/my-portfolio;
|
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;
|
||||||
# return 200 "$query";
|
return 200 "$query";
|
||||||
# '';
|
'';
|
||||||
# };
|
};
|
||||||
|
|
||||||
# locations."/" = {
|
locations."/" = {
|
||||||
# extraConfig = ''
|
extraConfig = ''
|
||||||
# try_files $uri $uri.php $uri/ =404;
|
try_files $uri $uri.php $uri/ =404;
|
||||||
# index index.php index.html index.htm;
|
index index.php index.html index.htm;
|
||||||
# rewrite ^/contact$ /contact.php last;
|
rewrite ^/contact$ /contact.php last;
|
||||||
# rewrite ^/resume$ /resume.php last;
|
rewrite ^/resume$ /resume.php last;
|
||||||
# '';
|
'';
|
||||||
# };
|
};
|
||||||
|
|
||||||
# locations."~ \.php$" = {
|
locations."~ \.php$" = {
|
||||||
# extraConfig = ''
|
extraConfig = ''
|
||||||
# include ${pkgs.nginx}/conf/fastcgi.conf;
|
include ${pkgs.nginx}/conf/fastcgi.conf;
|
||||||
# fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||||
# fastcgi_pass unix:${config.services.phpfpm.pools.main.socket};
|
fastcgi_pass unix:${config.services.phpfpm.pools.main.socket};
|
||||||
# '';
|
'';
|
||||||
# };
|
};
|
||||||
#};
|
};
|
||||||
"blog.quineglobal.com" = {
|
"blog.quineglobal.com" = {
|
||||||
enableACME = false;
|
enableACME = false;
|
||||||
forceSSL = false;
|
forceSSL = false;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue