Skip to content

Instantly share code, notes, and snippets.

@Willamin
Last active December 19, 2019 02:45
Show Gist options
  • Save Willamin/e4c5feda7b99325c1ad7c5f0be083164 to your computer and use it in GitHub Desktop.
Save Willamin/e4c5feda7b99325c1ad7c5f0be083164 to your computer and use it in GitHub Desktop.
$ tree -L 2 /media
/media
├── bigboi
│   ├── lost+found
│   └── Movies
├── disk
├── extra
└── library
├── das
├── Internet Videos
├── lost+found
├── Movies -> /media/bigboi/Movies
├── Short Films
├── Tech Talks
└── TV Shows
13 directories, 0 files
$ cat /etc/nginx/nginx.conf
user will;
worker_processes 1;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/conf.d/*.conf;
server {
listen 80 default;
server_name _;
root /media/library;
location / {
index index.html;
autoindex on;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment