XBackBone icon indicating copy to clipboard operation
XBackBone copied to clipboard

Multiple Domains?

Open benz44 opened this issue 3 years ago • 7 comments

I have read removing base url gives the possibility to use multiple domains. https://github.com/SergiX44/XBackBone/issues/257 but with the new added domain i got: 500 Internal Server Error Unexpected error while handling the request.

regards

benz44 avatar Aug 21 '22 12:08 benz44

Thanks it worked fine here! But.....is there a neater way to do this? I keep getting redirected to the /login page and it also ruins the copy url function

Using docker so my path was at /config/www/xbackbone/config.php Delete only the url from the config, leaving it blank

<?php
return array (
  'base_url' => '',
  'db' =>
  array (
    'connection' => 'sqlite',
    'dsn' => '/config/www/xbackbone/resources/database/xbackbone.db',
    'username' => NULL,
    'password' => NULL,
  ),
  'storage' =>
  array (
    'driver' => 'local',
    'path' => '/config/www/xbackbone/storage',
  ),
);

bacitoto avatar Oct 22 '22 02:10 bacitoto

If anyone's having issues with it working but whenever someone downloads the client script for sharex it sends out http instead of https, I managed to make https manual whilst making domain dynamic: 'base_url' => "https://".$_SERVER['SERVER_NAME']

xamionex avatar Nov 06 '22 13:11 xamionex

You can remove the base_url from the config and XBB will use any domain you are contacting it

sergix44 avatar Nov 08 '22 09:11 sergix44

edit: Problem is when using mydomain.com, files will have mydomain.com on it's url and can be shared. But if I use local ip to access XBB, files will have local url and therefore won't be sharable :( (unless I manually change the url before sending the link)

I was looking for local ip access and share files with mydomain.example

bacitoto avatar Nov 08 '22 10:11 bacitoto

edit: Problem is when using mydomain.com, files will have mydomain.com on it's url and can be shared. But if I use local ip to access XBB, files will have local url and therefore won't be sharable :( (unless I manually change the url before sending the link)

I was looking for local ip access and share files with mydomain.example

You use a program for capturing for that (ShareX)

xamionex avatar Nov 08 '22 11:11 xamionex

Either using sharex or via web browser the result is the same. If I use cloudflare proxy, upload speed drops tremendously because it's not uploading locally.

I want to upload files locally, because it's faster, but have said files with an external ip/domain link to share. I'm think I can edit the config file that attributes links to uploads, and changing the default url (url that I'm using to access XBB) to mydomain.com

bacitoto avatar Nov 08 '22 12:11 bacitoto

Hey. Looking the solution for the same situation with multi-domain: The first domain - for uploading and sharing screenshots: share.example.com (available from the Internet) The second - is for manual uploads and manage: manage.example.com (available only with x509 client certificate)

The main problem is: impossible to copy the image URL like share.example.com when I open manage.example.com (it's copy only the current domain).

dmitrygribenchuk avatar Feb 01 '23 06:02 dmitrygribenchuk