Skip to content

Commit

Permalink
Replace paste.vpsfree.cz with bepasty
Browse files Browse the repository at this point in the history
  • Loading branch information
aither64 committed Jun 19, 2023
1 parent 2e0f040 commit afdf2a9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cluster/cz.vpsfree/containers/int.paste/config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ in {

services.bepasty = {
enable = true;
servers."bepasty.vpsfree.cz" = {
servers."paste.vpsfree.cz" = {
bind = "0.0.0.0:${toString confMachine.services.bepasty.port}";

defaultPermissions = "read,create";
Expand Down
2 changes: 1 addition & 1 deletion cluster/cz.vpsfree/containers/int.paste/module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

healthChecks = {
systemd.unitProperties = {
"bepasty-server-bepasty.vpsfree.cz-gunicorn.service" = [
"bepasty-server-paste.vpsfree.cz-gunicorn.service" = [
{ property = "ActiveState"; value = "active"; }
];
};
Expand Down
3 changes: 2 additions & 1 deletion cluster/cz.vpsfree/containers/prg/proxy/config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ in {
locations."/gh-webhook".proxyPass = "http://${vpsfbot.addresses.primary.address}:8000";
};

"bepasty.vpsfree.cz" = {
"paste.vpsfree.cz" = {
serverAliases = [ "bepasty.vpsfree.cz" ];
enableACME = true;
forceSSL = true;
locations."/".proxyPass = "http://${paste.services.bepasty.address}:${toString paste.services.bepasty.port}";
Expand Down
4 changes: 2 additions & 2 deletions configs/internal-dns/zone.vpsfree.cz.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$ORIGIN vpsfree.cz.
$TTL 1H ; default expiration time of all resource records without their own TTL value
@ IN SOA @fqdn@. podpora.vpsfree.cz. (
2023050400 ; serial number of this zone file
2023061900 ; serial number of this zone file
1D ; slave refresh (1 day)
2H ; slave retry time in case of a problem (2 hours)
4W ; slave expiration time (4 weeks)
Expand Down Expand Up @@ -43,7 +43,7 @@ mx2 IN AAAA 2a00:cb40:2::1:95
mxfilter IN A 37.205.10.110
mxproxy IN A 37.205.9.45
new IN A 83.167.228.42
paste IN CNAME proxy.vpsfree.cz.
paste IN CNAME proxy.prg.vpsfree.cz.
paste.int IN A 172.16.9.157
paste-old.int IN A 37.205.8.141
piwik IN CNAME prasiatko.vpsfree.cz.
Expand Down

0 comments on commit afdf2a9

Please sign in to comment.