Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why Kennedy, Shakespeare, Maria and URL .ged is not working on hosting or VPS #165

Open
assanj opened this issue Nov 12, 2023 · 6 comments

Comments

@assanj
Copy link

assanj commented Nov 12, 2023

Why Kennedy, Shakespeare, Maria and "open URL .ged" are not working on hosting or VPS?

  • version: 2023-08-27 23:43 (bd6f6a8)

I have check it on VPS.
I have check it on hosting server under Letsencrypt domain.
I have load it from https://github.com/PeWu/topola-viewer/archive/refs/heads/gh-pages.zip
I have build app by myself from git under NPM

but in all combinations - the result is the same - file load error - Failed to fetch

topola-webpack is working okey in all cases with the same .ged.
LOCAL ged is working okey in all cases with the same .ged.

Please, i need help!

Thank U!

WITH ALL DUE RESPECT!
I think (!), we all don't have the task of looking at the remote URL, we increasingly want to see our personal GED saved on our hosting server. There is no need to spend so much effort on topolaproxy.bieda.it (cors-anywhere proxy)
Please, just give the opportunity to open .GED file with the default name from the same directory as INDEX.HTML. Without any bar menus for downloading files from the outside.
Need a product like TOPOLA_WEBPACK only with search functionality + details by person.

Let's focus on GED parsing together/ Perhaps you need to make some kind of file parsing logging system.
Hard times are coming with the new XML formats from the brothers in familysearch.
Thank you vary much again and again.

Best regards to all!

@PeWu
Copy link
Owner

PeWu commented Nov 14, 2023

Thanks for submitting the issue. This is right, the example links on the front page don't work when you're hosting Topola Viewer yourself because of CORS issues.

However, if you're looking to host Topola Viewer and also the GEDCOM files yourself, construct the URL like this:
https://example.com/#/view?url=https://example.com/my_family.ged&embedded=true&handleCors=false (Assuming you're hosting the GEDCOM file at https://example.com/my_family.ged).

The other URL options are listed here: https://github.com/PeWu/topola-viewer#additional-options

I hope this helps. I guess the documentation could be improved 😄

@assanj
Copy link
Author

assanj commented Nov 15, 2023

Thank you very much.
And what about pathes to .jpeg files in gedcom tag <2 FILE ... > for individuals in my folder https://example.ru/pics/ in this embedded case? Is it unavailable in embedded case?
Is the search menu for indi also unavailable in the mobile version (non-landscape mode) for embedded? People cant find it without talks about it. Maybe it not hard to make a special search button in ScreenSize.SMALL?

@PeWu
Copy link
Owner

PeWu commented Nov 15, 2023

It will work correctly if you reference the image file using the full URL. E.g.

2 FILE https://example.com/pics/person1.jpg

Adding the search to mobile view is something that is definitely doable. I created a separate issue for it: #166

@assanj
Copy link
Author

assanj commented Nov 20, 2023

Since the GEDCOM file contains confidential personal data, is it possible to hide the path to the file in embedded mode by adding a certain Variable to the path, which is SET during Build, which can modify the path to a some folder defined in Variable?
So one path will be specified in the address bar and another file will be implemented. By default, the variable is left empty so that the visible is equivalent to the actual. Can you tell me in which line of code you I can make such a change by myself.

Even better, through such a setting of the full embedded mode URL in variable in the code, you can make a beautiful appeal to the domain without a long string with parameters. just a www.example.com. it will be great.
So two goals:

  1. hide gedcom file
  2. clear pretty url address

@PeWu
Copy link
Owner

PeWu commented Nov 27, 2023

I added an option to the build process to specify the GEDCOM URL in build time. See https://github.com/PeWu/topola-viewer#build-for-your-own-data-only

Note that the contents of the GEDCOM file will still be accessible for those who know how to do it. Opening browser dev tools you can see requests that the browser makes, including the request to the GEDCOM URL.

@assanj
Copy link
Author

assanj commented Mar 14, 2024

Its nice. Thank u very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants