server icon indicating copy to clipboard operation
server copied to clipboard

Uploaded file is linked to localhost

Open sivert-io opened this issue 2 years ago • 8 comments

When uploading a file, the files href is linked to localhost:3003. image

Should be the sites url + path to file

sivert-io avatar Apr 10 '22 19:04 sivert-io

are you connected to localhost:3003? thats hosted on the same pc

slaygirlz avatar Apr 11 '22 05:04 slaygirlz

are you connected to localhost:3003? thats hosted on the same pc

No, I was connected to the public IP of a Linux-server we own.

sivert-io avatar Apr 11 '22 06:04 sivert-io

I also had this issue I hand to go to the src folder in bundle in the cdn routes attachment.js and change it to the name of my public domain and then it worked.... janky workaround to fix that issue.

Austcool-Walker avatar Apr 20 '22 15:04 Austcool-Walker

the database as of when I last checked seems to have a cdn_public_address or something like that I don't remember the exact naming but when I changed it to the public domain masking my public IPv4 it just. corrupted the database even with the fosscord server in the off state. I don't recommend editing that cdn_public thing defaulted to null until its looked into farther people should log and debug the server for the fosscord developers to see before trying to manually set the cdn_public url setting in the database.db

Austcool-Walker avatar Apr 20 '22 15:04 Austcool-Walker

well, dont edit your database in a text editor lol

TheArcaneBrony avatar Apr 20 '22 22:04 TheArcaneBrony

Lamo

slaygirlz avatar Apr 26 '22 03:04 slaygirlz

I also had this issue I hand to go to the src folder in bundle in the cdn routes attachment.js and change it to the name of my public domain and then it worked.... janky workaround to fix that issue.

this worked, thanks!

oie1 avatar Jun 07 '22 11:06 oie1

Database.db -> config -> cdn_public

On Tue, Jun 7, 2022, 13:47 Denisbg2011game @.***> wrote:

I also had this issue I hand to go to the src folder in bundle in the cdn routes attachment.js and change it to the name of my public domain and then it worked.... janky workaround to fix that issue.

this worked, thanks!

— Reply to this email directly, view it on GitHub https://github.com/fosscord/fosscord-server/issues/721#issuecomment-1148558817, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADHRDGWSNIVUCACIQA6YK6DVN4ZDVANCNFSM5TBI3VFQ . You are receiving this because you commented.Message ID: @.***>

TheArcaneBrony avatar Jun 07 '22 11:06 TheArcaneBrony