Wasabi S3 Nextcloud

Hello,
I’m trying to add s3 to my nextcloud nixos instance and running into a problem. Here is my config for the objectstore:

config.objectstore.s3 = {
       enable = true;
       bucket = "pubmrrlnextcloud";
       autocreate = false;
       key = "redacted";
       secretFile = "${pkgs.writeText "secret" "redacted"}";
       hostname = "s3.wasabisys.com/";
       useSsl = true;
       #port = 9000;
       usePathStyle = true;
       region = "us-east-1";
   };

I grabbed these settings from the wiki. The bucket has been made on wasabi, the access key and secret key are freshly made. When I build it Nextcloud won’t load:

Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.

This config was working previous to the s3 block.
What am I missing? Thanks!
Anthony

Welp this is embarrassing… turns out the trailing “/” in the hostname broke the communication between my box and wasabi s3.
So in the end this is my config that fixed it:

config.objectstore.s3 = {
       enable = true;
       bucket = "pubmrrlnextcloud";
       autocreate = false;
       key = "redacted";
       secretFile = "${pkgs.writeText "secret" "redacted"}";
       hostname = "s3.wasabisys.com";
       useSsl = true;
       #port = 9000;
       usePathStyle = true;
       region = "us-east-1";
   };