diff options
author | tzlil <tzlils@protonmail.com> | 2023-02-26 00:59:53 +0200 |
---|---|---|
committer | tzlil <tzlils@protonmail.com> | 2023-02-26 00:59:53 +0200 |
commit | fa27bb3e6f6ccbc548303b5f259c1020450fef6e (patch) | |
tree | d2460d99398233d3d1624bee20485511c5da9295 /hosts | |
parent | 8d1cdb903a6ae919409b142b8c6f2336ad634fbf (diff) |
add lain
Diffstat (limited to 'hosts')
-rw-r--r-- | hosts/vps/website.nix | 36 |
1 files changed, 29 insertions, 7 deletions
diff --git a/hosts/vps/website.nix b/hosts/vps/website.nix index 5d767c5..25157a1 100644 --- a/hosts/vps/website.nix +++ b/hosts/vps/website.nix @@ -32,13 +32,35 @@ config = { services.caddy = { enable = true; - # virtualHosts = { - # "http://localhost".extraConfig = '' - # try_files ${pkgs.writeText "index.html" '' - # hello world - # ''} / - # ''; - # }; + virtualHosts = { + "http://95.179.168.209.vultrusercontent.com ".extraConfig = '' + bind 0.0.0.0 + try_files ${pkgs.writeText "index.html" '' +~?~+=I?~~IIIII++,: .?= .,I=O8OZ.DNNO, ZD7:::=.? ,,:,,I,,:,~+?II?I?II?=+=~+7$ZO +?==++??==+I???7..:. :II$77?I+ID~NND8.ZMN7~=~I7:,., :?7,.,.~+?I???????,+~7+$ZOZ +7+===I+~===?I77: ? ,$7$.:.,I?=7NNNINMMMNOI=++ .~==I$7, ..++?I???I+=?.+:O+ZZOZ +===++I+==?III??I,?, ~I7NN,.. ??ONNNMMMD$777$7I$ZOO$7?....+=????I~=+,:+,O8DNMM +~=~==7II=+I?II7I,I+,8Z.II8D+=~:.,7$NMMMMMN8$7~. .. :88I. ..?=?++I:~+=.~~~NMMMNN +~====II?I~+?I?$7I?~8D7+7$ZZNONDN8Z8NMMMMMMNNON:=. :,$.I7 .,+=??I:,=, .:,=DNNMMN +=+?==+==?~+=I?$$I+88D:I$8NMNDDNNNDNNNMMMMMMMMM8I$77=MMDO. :~=+?,,, .~,?8DDD8D +=~=+==I7I=IIIIO$=~OOD=I7ODNNNNMNNDNDNMMMMMMMMNO$O+OZ 78.,.I::++:.. .,::=888OOO +===I=I?~=?I???$I$?OODZ=7Z8NDONNN7D88MMMMMMMMMMNNNN8DNN~..~:7,,+7?,:,:::+8=Z888OO +~+===7?=??I????7Z7ZOD8I777$+NNN:OOZOMMMMMMMMMMMMMMNMM+..~=?=O:+?::=+~:~+IDD888OZ +I==II??=I???=::7OI?O88Z=I~,?ZDD,Z$IDMMMMMMMMMMMMMMMM:$$?.~?+=?:,~+?I??==+++I8OOO +==+++??+=.,~,~:7Z$?7I77$=. $I$8I$7+~8NMMMMMMMMMMMMDDMN$ ,:+?=.~==?II+++=+=?II+OZ +==+?+I?,=:+?=~~??I++~7$$$= 777Z,$Z$$ONNMMMMMMMMMMMMMM8? .~=?:.==+?I~+?=+=??II?I8 +?=+?I:=~??II=~~, II?+ 7$7?=?77$?$Z:8NMMMNMMMMMMMMMMMD7 ,,===::~=?II.??++?++III+~ +??+.I+I=+I+??=~=~ =I+:?7$77?$$$ZI7Z8DM7NMMNMMMMMMMMOI. .,=~~.~~+I?:???==~????II? +I??:==?I++I?~==+=~:.?I7I77$?IZ$ZODDOIDNNNNNMMMMNM8?.:. ,,+=,::~+==II=~,=?+?IIIII +??I:?=,=+++?II+=:,:, +77777$$777ODDMMNO~DNNNDD8?..::: .,,+~.,::=??????=+?IIIII?I +????++=~:=?IIIII=~:: ~~+II77$$7$ZO8NMMMND.+: .=7+=~ ,,:?...~II??+??I?+??IIII?I +??III7II+~:?II7+II?, ~,:,~7777$$$I$8DNMMNO .~I .Z:.,:~: ,+???+=,IIIIII??IIIII +???I7I:,~=:,+II+=~I??:.,,,.:77777777$ODMM8 .:+ZI. ,~,..~~ :II?==~:?II??IIIIIIIII +No matter where you go, everybody's connected + ''} / + file_server + ''; + }; }; networking.firewall.allowedTCPPorts = [80 443]; }; |