+12
-13
@@ -59,20 +59,20 @@ htpasswd -cb elog_instance/elog.passwd robot testpassword
|
||||
# Configuration with restricted access
|
||||
cat > elog_instance/elogd.cfg <<EOF
|
||||
[global]
|
||||
port = 8080
|
||||
logdir = logbooks
|
||||
allowhtml = 1
|
||||
List after submit = 0
|
||||
Port = 8080
|
||||
LogDir = logbooks
|
||||
AllowHTML = 1
|
||||
ListAfterSubmit = 0
|
||||
|
||||
[demo]
|
||||
dir = logbooks/demo
|
||||
allow = robot
|
||||
requirepassword = 1
|
||||
needpassword = 1
|
||||
passwdfile = elog.passwd
|
||||
guest = 0
|
||||
allowanonymous = 0
|
||||
Required Attributes = Author
|
||||
LogDir = logbooks/demo
|
||||
Authentication = required
|
||||
PasswordFile = elog_instance/elog.passwd
|
||||
AllowEdit = all
|
||||
AllowDelete = all
|
||||
Guest = 0
|
||||
AllowAnonymous = 0
|
||||
RequiredAttributes = Author
|
||||
|
||||
EOF
|
||||
|
||||
@@ -87,7 +87,6 @@ echo "✅ elogd version:"
|
||||
|
||||
# Check if the server is listening on port 8080
|
||||
ps aux | grep elogd
|
||||
netstat -tuln | grep 8080
|
||||
|
||||
# Test access
|
||||
URL="http://localhost:8080/demo"
|
||||
|
||||
Reference in New Issue
Block a user