Check out Using Object Storage for Uploads (S3 & Clones) and Setting up file and image uploads to S3.
If you can ssh to your server and there is a /var/discourse
then there is a reasonable chance that you have a "standard insfall’ (see Discourse official Standard Installation).