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] hidden/dot files not showing in nginx #51

Closed
1 task done
CygnusHyoga opened this issue Jun 20, 2023 · 2 comments
Closed
1 task done

[BUG] hidden/dot files not showing in nginx #51

CygnusHyoga opened this issue Jun 20, 2023 · 2 comments

Comments

@CygnusHyoga
Copy link

CygnusHyoga commented Jun 20, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Hi! I'm trying to install packages from Fedora from local network via the variable inst.repo via http. The inst.repo variable need a valid .treeinfo file (the I have in the "extracted" directory). The .treeinfo is a hidden file/dot file and the nginx in the docker image is not showing hidden files.

In the netboot.mydomain.com Local Assets hidden file are showing, but in boot.mydomain.com are not showing.

Thanks!

Expected Behavior

Show hidden / dot file in nginx / boot.mydomain.com.

Steps To Reproduce

  1. Deploy self hosted netbootxyz
  2. Download Fedora 38 server iso image
  3. Extract iso image to extracted
  4. Try to deploy feroda with inst.repo

...
:option_fedora_38
set os Fedora
set distribution Server
cpuid --ext 29 && set arch x86_64
set version 38
set dir extracted
set url ${live_endpoint}/${os}/${distribution}/${arch}/${version}/${dir}
set kickstart http:/xxx/pxe/pxe/raw/branch/main/kickstart/xxx.cfg
imgfree
kernel ${url}/images/pxeboot/vmlinuz inst.ks=${kickstart} inst.repo=${url}
initrd ${url}/images/pxeboot/initrd.img
boot || goto custom_exit
...


### Environment

```markdown
- OS: Fedora 38
- How docker service was installed: K3s: v1.27.2+k3s1

CPU architecture

x86-64

Docker creation

custom helm chart

Container logs

$ kubectl logs netbootxyz-bbfcc6cf5-kbzg9
[migrations] started
[migrations] no migrations found
usermod: no changes
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗ 
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝ 

   Brought to you by linuxserver.io
───────────────────────────────────────

To support the app dev(s) visit:
netboot.xyz: https://opencollective.com/netbootxyz/donate

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    911
User GID:    911
───────────────────────────────────────

[custom-init] No custom files found, skipping...
listening on *:3000
[ls.io-init] done.
4J1ytxoJ0J605vtAAAAB connected time=1687287887295
RSSNKAOo2yqjXY-3AAAD connected time=1687290542936
NlnJ0Bt4Fj_hMojaAAAF connected time=1687291594860
@github-actions
Copy link

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@CygnusHyoga
Copy link
Author

CygnusHyoga commented Jun 21, 2023

I finally have a solution, its not fault of the web server, the retrieve of the hidden files are OK (but are not showing in the browser in boot.example.com but OK in local assets).

My problem was the repo sync when I extract the image from the iso. With rsync fedora mirror to local folder have solve the problem.

The command I used for fix thee problem is this:

rsync -avP rsync://mirrors.kernel.org/fedora/releases/38/Server/x86_64/os/ /path/to/the/image/extracted/

Thanks! I will close the case.

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

No branches or pull requests

1 participant