mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 09:06:02 +03:00
[GH-ISSUE #1019] Bug: When using nginx to serve archivebox some static assets fail to load #2151
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#2151
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @iambeingtracked on GitHub (Sep 4, 2022).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1019
Some files are simply not found.
Steps to reproduce
Screenshots or log output
ArchiveBox version
@iambeingtracked commented on GitHub (Sep 4, 2022):
UPD: Tried to change a location to the home dir of a user and reinitialize there, didn't help.
Nginx config:
archivebox --version:
@pirate commented on GitHub (Nov 18, 2022):
Ahh I think you have to add an nginx config
locationblock to handle serving staticfile requests to/static/from/home/archivebox/.local/lib/python3.9/site-packages/archivebox/templates/static(https://github.com/ArchiveBox/ArchiveBox/tree/dev/archivebox/templates/static)Might look something like this:
It needs to handle admin staticfiles correctly, which is why I just let django handle it in the past. Admin staticfiles are located elsewhere
/home/archivebox/.local/lib/python3.9/site-packages/djangoand are served directly from/static/admin/https://github.com/django/django/tree/main/django/contrib/admin/static/admin.Let me know if that works and I'll add it to the example config here: https://github.com/ArchiveBox/ArchiveBox/blob/dev/etc/nginx.conf
@iambeingtracked commented on GitHub (Nov 25, 2022):
Seems like it doesn't really help.
Here's my current config:
https://archive.wherelinux.xyz
Note that it won't be available for 2 hours now due to some electricity problems.