filebrowser / docs

📄 Who doesn't like documentation?
58 stars 38 forks source link

Config file settings ignored #15

Closed FranzFelberer closed 1 year ago

FranzFelberer commented 5 years ago

Dear all, for some reason, it seems that the config file settings (address, port) are ignored. config file:

Sign up:          false
Create User Dir:  false
Auth method:      json
Shell:

Branding:
  Name:
  Files override:
  Disable external links:  false

Server:
  Log:       stdout
  Port:      8081
  Base URL:
  Root:      .
  Socket:
  Address:   192.168.0.22
  TLS Cert:
  TLS Key:

Defaults:
  Scope:      .
  Locale:     en
  View mode:  mosaic
  Commands:
  Sorting:
    By:
    Asc:  false
  Permissions:
    Admin:     false
    Execute:   true
    Create:    true
    Rename:    true
    Modify:    true
    Delete:    true
    Share:     true
    Download:  true
sudo service filebrowser@default.yaml status
● filebrowser@default.yaml.service - File browser: default.yaml
   Loaded: loaded (/etc/systemd/system/filebrowser@default.yaml.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2019-10-25 05:25:51 CEST; 3h 9min ago
 Main PID: 16676 (filebrowser)
    Tasks: 7 (limit: 4496)
   CGroup: /system.slice/system-filebrowser.slice/filebrowser@default.yaml.service
           └─16676 /usr/local/sbin/filebrowser -c /etc/filebrowser/default.yaml

Oct 25 05:25:51 myserver systemd[1]: Started File browser: default.yaml.
Oct 25 05:25:51 myserver filebrowser[16676]: 2019/10/25 05:25:51 Using config file: /etc/filebrowser/default.yaml
Oct 25 05:25:51 myserver filebrowser[16676]: 2019/10/25 05:25:51 Listening on 127.0.0.1:8080
mckaygerhard commented 3 years ago

the output you put here is the output of the config export command that is only provided to later be used with config import command, a proper config file is just one section, look at here: https://github.com/filebrowser/filebrowser/issues/1438#issuecomment-865046092 and (when i updfate it) lok at here too: https://filebrowser.org/configuration (that is https://github.com/filebrowser/docs/tree/master/configuration )

please close this issue #15 @o1egl cos this is not related to docs. and i currently solved the question!