Skip to content

Commit

Permalink
~ fix
Browse files Browse the repository at this point in the history
  • Loading branch information
oluceps committed Oct 21, 2024
1 parent 39a3499 commit 8242f45
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 18 deletions.
3 changes: 2 additions & 1 deletion modules/rustypaste.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ in

serviceConfig = {
Type = "simple";
DynamicUser = true;
ExecStart = "${cfg.package}/bin/rustypaste";
StateDirectory = "paste";
StateDirectory = "rustypaste";
Environment = "CONFIG=${settingsFormat.generate "config.toml" cfg.settings}";
Restart = "on-failure";
};
Expand Down
35 changes: 18 additions & 17 deletions repack/rustypaste.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ reIf {
content_type = "text/plain; charset=utf-8";
text = ''
/|、
(˙、.7
|、~ヽ
じしf_,)ノ
/|、
(˙、.7
|、~ヽ
じしf_,)ノ
Submit files via HTTP POST here:
curl -F 'file=@example.txt' <server>
This will return the URL of the uploaded file nya.
The server administrator might remove any pastes that they do not personally
want to host.
If you are the server administrator and want to change this page, just go
into your config file and change it! If you change the expiry time, it is
recommended that you do.
By default, pastes expire every hour. The server admin may or may not have
changed this.
Check out the GitHub repository at https://github.com/orhun/rustypaste
Command line tool is available at https://github.com/orhun/rustypaste-cli
Submit files via HTTP POST here:
curl -F 'file=@example.txt' <server>
This will return the URL of the uploaded file nya.
The server administrator might remove any pastes that they do not personally
want to host.
If you are the server administrator and want to change this page, just go
into your config file and change it! If you change the expiry time, it is
recommended that you do.
By default, pastes expire every hour. The server admin may or may not have
changed this.
Check out the GitHub repository at https://github.com/orhun/rustypaste
Command line tool is available at https://github.com/orhun/rustypaste-cli
'';
};
paste = {
Expand Down Expand Up @@ -85,7 +85,8 @@ reIf {
handle_spaces = "replace";
max_content_length = "10MB";
timeout = "30s";
upload_path = "./upload";
upload_path = "/var/lib/rustypaste/";
duplicate_files = true;
url = "https://pb.nyaw.xyz";
};
};
Expand Down

0 comments on commit 8242f45

Please sign in to comment.