35
submitted 1 year ago* (last edited 1 year ago) by Disabled@burggit.moe to c/announcements@burggit.moe

People have been having issues with uploading images/videos to Burggit sometimes, usually a lemmy issue that we have no control over. Well now we have https://shota.nu feel free to upload your embeddable files there and embed them directly into Burggit! think of it as Imgur, but less retarded!

Check it out: https://shota.nu Keep uploaded content within Burggit Rules

important note: uploaded data is NOT encrypted. For encrypted temporary file sharing, try Shota Send instead.

Important note #2: Make sure to use the direct link when embedding files! It will look something like https://shota.nu/ss/yourfileid.extension. If it does not have the /ss/ it's not a direct link and will not embed properly on lemmy.

For ShareX Users (Click to expand)

ShareX Config Provided by: @Sheep@burggit.moe

Download link. Or just import the following from your clipboard into sharex:

{
  "Version": "13.1.0",
  "DestinationType": "ImageUploader, TextUploader, FileUploader",
  "RequestMethod": "PUT",
  "RequestURL": "https://shota.nu/upload/",
  "Headers": {
    "Accept": "application/json",
    "Linx-Delete-Key": null,
    "Linx-Access-Key": null
  },
  "Body": "Binary",
  "URL": "$json:direct_url$",
  "DeletionURL": "https://shota.nu/delete/$json:filename$?linx-delete-key=$json:delete_key$"
}

top 25 comments
sorted by: hot top controversial new old
[-] nobody@burggit.moe 6 points 1 year ago

Nice :3 I use the same server, just changed a few things and different theme etc.

[-] Disabled@burggit.moe 4 points 1 year ago

How do you get a different theme? I hate the white theme but didn't know you could change it.

[-] nobody@burggit.moe 5 points 1 year ago* (last edited 1 year ago)

I just downloaded the source and changed variables around. Working on adding an image now, which is giving me a pain in the ass to position xD coz i have to rebuild the project over and over to test.

Highly recommend building outside of docker if u want a quick test. I chose to stick with docker, which means every time i gotta create a new docker image just to see my changes, try to fix, repeat, etc.

Lemme know if u need help.

[-] Kyou@burggit.moe 6 points 1 year ago

Nice domain btw, "shota nu" basically means "naked shota" in portuguese

[-] Disabled@burggit.moe 7 points 1 year ago

That's great! nu means now in Swedish, Dutch, Norwegian and I think some other languages too. I love that it means naked shota in portuguese xD

[-] float@burggit.moe 4 points 1 year ago

It has the same meaning in french hahah "un shota nu" : "a naked shota", and in galician and catalan. It's what I use to remember what the domain name is, just thinking "naked shota".

[-] Disabled@burggit.moe 4 points 1 year ago

I love this accidental double meaning I made it have. Truly, it was fate.

[-] Anonymous@burggit.moe 4 points 1 year ago
[-] livixPmfOQRj@burggit.moe 3 points 1 year ago

Is this a third party service or something you guys made?

[-] Disabled@burggit.moe 8 points 1 year ago

I made it, not a thirdparty.

[-] porn@burggit.moe 1 points 1 year ago* (last edited 1 year ago)

Can you please make http://shota.nu redirect to https? enabling hsts would also be nice.

First experience I had was typing it out from memory, seeing the blank nginx page, and looking up the announcement post thinking I had misremembered.

example nginx config

server {
    listen 80;
    #server_name shota.nu;
    
    return 301 https://$server_name$request_uri;
}

server {
    #listen 443 ssl;
    #server_name shota.nu;
    
    # max-age of 15768000 and over will get hsts permanently compiled into some static lists!
    # If you're unsure about maybe disabling it later, reduce it to say 7884000
    add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload" always;
}


Also you may wanna add server_tokens off; to your html{} block if you don't want to show off your 3 year old nginx that has been deprecated since 2021.

[-] Disabled@burggit.moe 1 points 1 year ago

I was wondering why you were thinking the redirect wasn't working because I definitely had the redirect set. I remembered I was testing this on a subdomain at first as I was originally using a different server, decided to move to a server with more available storage. Turned out the redirect was still accounting for the old domain.

Forgot to do server_tokens off, thanks for reminding me. I'm just using the latest Debian 11 stable on that machine right now, so that'd explain the old Nginx version.

[-] porn@burggit.moe 1 points 1 year ago
[-] Disabled@burggit.moe 1 points 1 year ago

that should be enabled now too.

[-] porn@burggit.moe 2 points 1 year ago
[-] Disabled@burggit.moe 2 points 1 year ago

Happy to help.

[-] Sheep@burggit.moe 1 points 1 year ago* (last edited 1 year ago)

Awesome. Is there any chance you can make a sharex config for it?

[-] Disabled@burggit.moe 1 points 1 year ago

I don't use ShareX it's probably possible, I enabled API usage of the service, however since I don't have a Windows machine I don't really have any means of testing this.

[-] Sheep@burggit.moe 2 points 1 year ago* (last edited 1 year ago)

I managed to get a config working. Feel free to include it in the main post for people on windows who do use sharex.

Download link. Or just import the following from your clipboard into sharex:

{
  "Version": "13.1.0",
  "DestinationType": "ImageUploader, TextUploader, FileUploader",
  "RequestMethod": "PUT",
  "RequestURL": "https://shota.nu/upload/",
  "Headers": {
    "Accept": "application/json",
    "Linx-Delete-Key": null,
    "Linx-Access-Key": null
  },
  "Body": "Binary",
  "URL": "$json:direct_url$",
  "DeletionURL": "https://shota.nu/delete/$json:filename$?linx-delete-key=$json:delete_key$"
}
[-] Disabled@burggit.moe 1 points 1 year ago

I've added this to the main post and credited you for it. Thank you! Very much appreciated.

[-] Sheep@burggit.moe 1 points 1 year ago* (last edited 1 year ago)

I just realized I made a "mistake" and used url instead of direct_url for the response which will cause issues in lemmy specifically as it has to be the direct url being posted. I've fixed my post and download link. If you could update it in the OP as well that would be much appreciated!

[-] Disabled@burggit.moe 2 points 1 year ago

I've updated the post with the latest script.

[-] MirceaKitsune@burggit.moe 1 points 1 year ago

Just making sure: You can also upload lighter images normally on the Lemmy instance as an attachment when posting right? For bigger media that's indeed very useful to have; Thanks for thinking of everything!

[-] Disabled@burggit.moe 1 points 1 year ago

Yeah, if you can get your image to upload through the regular interface, it's fine. This is mainly for files that simply will not upload through the regular interface because Lemmy's built in uploader is terrible.

load more comments
view more: next ›
this post was submitted on 30 Jun 2023
35 points (100.0% liked)

Announcements

177 readers
2 users here now

Announcements/Changelogs go here.

founded 1 year ago
MODERATORS