How to link internal_data between Two Hosts

Status
Not open for further replies.

REP13

Member
Hi , i have some questions i'm looking for linking internal_data between two hosts
First Host is the old one and it has a big storage You can nameit H1 .
Second is a VPS with small storage of 100GB You can name it H2 .

What i'm looking for is to display the H1 internal_data or synchronize it with H2 by using some command on H2 Config.php .
I did see some command on xenforo like :
$config['internalDataPath'] = '';
$config['externalDataPath'] = '';
$config['externalDataUrl'] = '';
But
$config['internalDataUrl'] = ''; does't exist

Any help !!!
 
Last edited:
i did found those instruction but my old host is an xenforo website is it possible to make this work ;

this one will be add to config.php but i don't know on which host the old host or the new host(VPS)


$config['internalDataUrl'] = function($externalPath, $canonical)
{
return 'internal_data_s3/https://xftest.ams3.digitaloceanspaces.com/internal_data/' . $externalPath;
};

Same thing on which host i need to add those code

location ~* /internal_data_s3/(.?)://(.?)/(.*) {
internal;
set $xfEtag $upstream_http_etag;
set $download_protocol $1;
set $download_host $2;
set $download_path $3;
set $download_url $download_protocol://$download_host/$download_path;

resolver 127.0.0.1 ipv6=off;
proxy_set_header Host $download_host;
proxy_set_header Authorization '';
proxy_set_header Cookie '';
proxy_max_temp_file_size 0;
proxy_intercept_errors on;
error_page 301 302 307 = @handle_redirect;

proxy_ssl_server_name on;
proxy_pass $download_url$is_args$args;

proxy_hide_header Content-Disposition;
proxy_hide_header Content-Type;
proxy_hide_header Etag;
proxy_hide_header x-amz-request-id;

add_header Etag $xfEtag;
add_header X-Frame-Options SAMEORIGIN;
add_header X-Content-Type-Options nosniff;
}

location @handle_redirect {
resolver 127.0.0.1 ipv6=off;
set $saved_redirect_location '$upstream_http_location';
proxy_pass $saved_redirect_location;
}
 
Last edited:
I creat a new website on some VPS hosting with an ssd of 100G and it's not enough to receive all the inetrnal_data folder from my old website because it's to big about 400GB, what i'm looking for after importing the database from the old web is to synchronize file to be displayed on the new host without tranfer , is it possible .
 
Last edited:
I creat a new website on some VPS hosting with an ssd of 100G and it's not enough to receive all the inetrnal_data folder from my old website because it's to big about 400GB, what i'm looking for after importing the database from the old web is to synchronize file to be displayed on the new host without tranfer , is it possible .
Why not get a VPS with adequate disk space? And also optimize attachment sizes before transfer? Use a VPS host that supports block and/or object storage if native disk storage isn't enough or too costly.

Or with S3 compatible object storage you can use something like JuiceFS to mount s3 storage to local server so Xenforo sees the mount as just another partition/mount. I use JuiceFS with Cloudflare R2 S3 storage due to free egress bandwidth https://github.com/centminmod/centminmod-juicefs
 
The worst thing with this xenforo is i never get any solution on how to do something, every thing has been set by my self, i did ask a clear question and no one can give us the right answers .
 
There's a reason I asked what the ultimate goal was. It's kinda silly to buy a VPS that doesn't have the storage you need...
 
Calm down sir...


I would say the new one... That's the one you want to indicate where are the datas.
it seem that you're some kind of pedo, i did ask a question on how to solve a software problem do you understand !!! and don't tell other how they have or need to be, calm or angry it's not your business .
 
We are sorry for your dissatisfaction and the entire community will come together to take action so that all your clearly posed questions receive clear answers. As a sign of appeasement, the community and I offer you a smile emoji : :)

Please accept, Sir, the expression of our distinguished feelings.
 
We are sorry for your dissatisfaction and the entire community will come together to take action so that all your clearly posed questions receive clear answers. As a sign of appeasement, the community and I offer you a smile emoji : :)

Please accept, Sir, the expression of our distinguished feelings.
what community !!! are you presenting something !!
 
it seem that you're some kind of pedo, i did ask a question on how to solve a software problem do you understand !!! and don't tell other how they have or need to be, calm or angry it's not your business .

what community !!! are you presenting something !!
I would help but I don't want to be subject to your ridicule.
IMO, this community owes you nothing because of what you think your entitled to.
Good luck, your going to need it. A great example of XF ignore function...
 
Status
Not open for further replies.
Back
Top Bottom