l002 nixos complete
This commit is contained in:
parent
2e6720e6e7
commit
737b51da0b
1 changed files with 43 additions and 15 deletions
|
@ -53,6 +53,7 @@
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
|
proxyWebsockets = true;
|
||||||
proxyPass = "http://10.20.40.104:3080";
|
proxyPass = "http://10.20.40.104:3080";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -88,23 +89,57 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# NOTE ellalala.com? joshuabell.xyz?
|
"www.joshuabell.xyz" = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
locations."/" = {
|
||||||
|
return = "301 https://joshuabell.xyz";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
"joshuabell.xyz" = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
locations."/" = {
|
||||||
|
# return = "200 '<html>Hello World</html>'";
|
||||||
|
extraConfig = ''
|
||||||
|
default_type text/html;
|
||||||
|
return 200 '
|
||||||
|
<html>
|
||||||
|
<div style="display: flex;width:100vw;height:100vh;justify-content: center;align-items:center;text-align:center;overflow:hidden">
|
||||||
|
In the void you roam,</br>
|
||||||
|
A page that cannot be found-</br>
|
||||||
|
Turn back, seek anew.
|
||||||
|
</div>
|
||||||
|
</html>
|
||||||
|
';
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
"www.ellalala.com" = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
locations."/" = {
|
||||||
|
return = "301 https://ellalala.com";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
"ellalala.com" = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
locations."/" = {
|
||||||
|
return = "404";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
"_" = {
|
"_" = {
|
||||||
default = true;
|
default = true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
return = "404"; # or 444 for drop
|
return = "444"; # 404 for not found or 444 for drop
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# STREAMS
|
# STREAMS
|
||||||
# streams = {
|
|
||||||
# # Adding stream configuration for port 3032
|
|
||||||
# "3032" = {
|
|
||||||
# proxyPass = "10.20.40.190:6611";
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
streamConfig = ''
|
streamConfig = ''
|
||||||
server {
|
server {
|
||||||
listen 3032;
|
listen 3032;
|
||||||
|
@ -125,10 +160,3 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
# TODO
|
# TODO
|
||||||
# <html>
|
|
||||||
# <div style="display: flex;width:100vw;height:100vh;justify-content: center;align-items:center;text-align:center;overflow:hidden">
|
|
||||||
# In the void you roam,</br>
|
|
||||||
# A page that cannot be found-</br>
|
|
||||||
# Turn back, seek anew.
|
|
||||||
# </div>
|
|
||||||
# </html>
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue