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

🐛 Bug: File preview images do not display. #8532

Closed
1 task done
jyoketsu opened this issue May 20, 2024 · 2 comments
Closed
1 task done

🐛 Bug: File preview images do not display. #8532

jyoketsu opened this issue May 20, 2024 · 2 comments

Comments

@jyoketsu
Copy link

Please confirm if bug report does NOT exist already ?

  • I confirm there is no existing issue for this

Steps to reproduce ?

I deployed using docker-compose and accessed via HTTPS. When uploading files, the preview images do not display correctly because the file URLs are HTTP.

Desired Behavior

In HTTPS mode, the URL of the preview images should also be HTTPS.

Project Details

Node: v20.12.1
Arch: x64
Platform: linux
Docker: true
RootDB: mysql2
PackageVersion: 0.207.2

Attachments

截屏2024-05-20 15 28 40
@pranavxc
Copy link
Member

pranavxc commented May 20, 2024

By default, the URL is constructed from the request. If a proxy service is used in between, the URL will be extracted as http. To override this behaviour, set the NC_PUBLIC_URL environment variable with your URL using https.

@jyoketsu
Copy link
Author

By default, the URL is constructed from the request. If a proxy service is used in between, the URL will be extracted as http. To override this behaviour, set the NC_PUBLIC_URL environment variable with your URL using https.

Thank you, this worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Closed
Development

No branches or pull requests

3 participants