Comment out temporarily most sites
This commit is contained in:
parent
e519bcc13b
commit
448221afff
1 changed files with 132 additions and 132 deletions
264
nixos/nginx.nix
264
nixos/nginx.nix
|
|
@ -48,156 +48,156 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
"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;
|
||||||
addSSL = false;
|
# addSSL = false;
|
||||||
|
|
||||||
locations."/" = {
|
# locations."/" = {
|
||||||
proxyPass = "http://127.0.0.1:3010/"; # pass through to docker container
|
# proxyPass = "http://127.0.0.1:3010/"; # pass through to docker container
|
||||||
};
|
# };
|
||||||
};
|
#};
|
||||||
"quineglobal.com" = {
|
#"quineglobal.com" = {
|
||||||
enableACME = false;
|
# enableACME = false;
|
||||||
forceSSL = false;
|
# forceSSL = false;
|
||||||
addSSL = false;
|
# addSSL = false;
|
||||||
|
|
||||||
locations."/" = {
|
# locations."/" = {
|
||||||
extraConfig = ''
|
# extraConfig = ''
|
||||||
index index.html index.htm;
|
# index index.html index.htm;
|
||||||
root /etc/pullomatic/com_quineglobal;
|
# root /etc/pullomatic/com_quineglobal;
|
||||||
'';
|
# '';
|
||||||
};
|
# };
|
||||||
};
|
#};
|
||||||
|
|
||||||
"webdav.philippeterson.com" = {
|
#"webdav.philippeterson.com" = {
|
||||||
serverName = "webdav.philippeterson.com";
|
# serverName = "webdav.philippeterson.com";
|
||||||
enableACME = true;
|
# enableACME = true;
|
||||||
onlySSL = true;
|
# onlySSL = true;
|
||||||
|
|
||||||
locations."/" = {
|
# locations."/" = {
|
||||||
proxyPass = "http://127.0.0.1:8082/"; # pass through to webdav
|
# proxyPass = "http://127.0.0.1:8082/"; # pass through to webdav
|
||||||
extraConfig = ''
|
# extraConfig = ''
|
||||||
# Pass required headers for WebDAV
|
# # Pass required headers for WebDAV
|
||||||
proxy_set_header Host $host;
|
# proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
# proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
# proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
#
|
||||||
# Pass Authorization header if required
|
# # Pass Authorization header if required
|
||||||
proxy_set_header Authorization $http_authorization;
|
# proxy_set_header Authorization $http_authorization;
|
||||||
|
#
|
||||||
# Set timeouts for large file uploads or long WebDAV operations
|
# # Set timeouts for large file uploads or long WebDAV operations
|
||||||
proxy_read_timeout 300;
|
# proxy_read_timeout 300;
|
||||||
proxy_connect_timeout 300;
|
# proxy_connect_timeout 300;
|
||||||
proxy_send_timeout 300;
|
# proxy_send_timeout 300;
|
||||||
|
#
|
||||||
# Increase client body size for large uploads
|
# # Increase client body size for large uploads
|
||||||
client_max_body_size 100M;
|
# client_max_body_size 100M;
|
||||||
|
#
|
||||||
# Optional: Disable caching for WebDAV operations
|
# # Optional: Disable caching for WebDAV operations
|
||||||
proxy_buffering off;
|
# proxy_buffering off;
|
||||||
proxy_cache off;
|
# proxy_cache off;
|
||||||
'';
|
# '';
|
||||||
};
|
# };
|
||||||
};
|
#};
|
||||||
|
|
||||||
"forge.quinefoundation.com-https" = {
|
#"forge.quinefoundation.com-https" = {
|
||||||
serverName = "forge.quinefoundation.com";
|
# serverName = "forge.quinefoundation.com";
|
||||||
enableACME = true;
|
# enableACME = true;
|
||||||
onlySSL = true;
|
# onlySSL = true;
|
||||||
|
|
||||||
locations."/" = {
|
# locations."/" = {
|
||||||
proxyPass = "http://127.0.0.1:3000/"; # pass through to Forgejo
|
# proxyPass = "http://127.0.0.1:3000/"; # pass through to Forgejo
|
||||||
};
|
# };
|
||||||
};
|
#};
|
||||||
|
|
||||||
"forge.quinefoundation.com-http" = {
|
#"forge.quinefoundation.com-http" = {
|
||||||
serverName = "forge.quinefoundation.com";
|
# serverName = "forge.quinefoundation.com";
|
||||||
|
|
||||||
listen = [
|
# listen = [
|
||||||
{ addr = "0.0.0.0"; port = 80; }
|
# { addr = "0.0.0.0"; port = 80; }
|
||||||
{ addr = "[::]"; port = 80; }
|
# { addr = "[::]"; port = 80; }
|
||||||
];
|
# ];
|
||||||
|
#
|
||||||
locations."/" = {
|
# locations."/" = {
|
||||||
# TODO: forgejo does not support HTTP+HTTPS. But it would be nice if it did.
|
# # TODO: forgejo does not support HTTP+HTTPS. But it would be nice if it did.
|
||||||
#proxyPass = "https://forge.quinefoundation.com/"; # pass through to HTTPS
|
# #proxyPass = "https://forge.quinefoundation.com/"; # pass through to HTTPS
|
||||||
|
|
||||||
# Instead, temporarily redirect to HTTPS
|
# # Instead, temporarily redirect to HTTPS
|
||||||
extraConfig = ''
|
# extraConfig = ''
|
||||||
return 302 https://$host$request_uri;
|
# return 302 https://$host$request_uri;
|
||||||
'';
|
# '';
|
||||||
};
|
# };
|
||||||
};
|
#};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Optionally configure additional options
|
# Optionally configure additional options
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue