From d82abaf7d5a3eca0cc09b630115c13c93d25cb25 Mon Sep 17 00:00:00 2001 From: vincent Date: Wed, 15 May 2019 20:10:09 +0200 Subject: [PATCH] prepre integration to starter --- README.md | 2 -- ampache_nginx_config.conf | 30 ------------------------------ arch_install.md | 3 +++ docker.md | 4 ++++ grubshell.md | 7 +++++-- nginx.md | 6 +++++- python.md | 4 ++++ virsh.md | 5 ++++- 8 files changed, 25 insertions(+), 36 deletions(-) delete mode 100644 README.md delete mode 100644 ampache_nginx_config.conf diff --git a/README.md b/README.md deleted file mode 100644 index b51a94a..0000000 --- a/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# readme -usefull diff --git a/ampache_nginx_config.conf b/ampache_nginx_config.conf deleted file mode 100644 index b754dc5..0000000 --- a/ampache_nginx_config.conf +++ /dev/null @@ -1,30 +0,0 @@ -if ( !-d $request_filename ) { - rewrite ^/ampache/rest/(.*)\.view$ /ampache/rest/index.php?action=$1 last; - rewrite ^/ampache/rest/play/(.+)$ /ampache/play/$1 last; -} - - rewrite ^/ampache/play/ssid/(\w+)/type/(\w+)/oid/([0-9]+)/uid/([0-9]+)/name/(.*)$ xi/ampache/play/index.php?ssid=$1&type=$2&oid=$3&uid=$4&name=$5 last; - rewrite ^/ampache/play/ssid/(\w+)/type/(\w+)/oid/([0-9]+)/uid/([0-9]+)/client/(.*)/noscrobble/([0-1])/name/(.*)$ /ampache/play/index.php?ssid=$1&type=$2&oid=$3&uid=$4&client=$5&noscrobble=$6&name=$7 last; - rewrite ^/ampache/play/ssid/(.*)/type/(.*)/oid/([0-9]+)/uid/([0-9]+)/client/(.*)/noscrobble/([0-1])/player/(.*)/name/(.*)$ /ampache/play/index.php?ssid=$1&type=$2&oid=$3&uid=$4&client=$5&noscrobble=$6&player=$7&name=$8 last; - rewrite ^/ampache/play/ssid/(.*)/type/(.*)/oid/([0-9]+)/uid/([0-9]+)/client/(.*)/noscrobble/([0-1])/bitrate/([0-9]+)/player/(.*)/name/(.*)$ /ampache/play/index.php?ssid=$1&type=$2&oid=$3&uid=$4&client=$5&noscrobble=$6&bitrate=$7player=$8&name=$9 last; - rewrite ^/ampache/play/ssid/(.*)/type/(.*)/oid/([0-9]+)/uid/([0-9]+)/client/(.*)/noscrobble/([0-1])/transcode_to/(w+)/bitrate/([0-9]+)/player/(.*)/name/(.*)$ /ampache/play/index.php?ssid=$1&type=$2&oid=$3&uid=$4&client=$5&noscrobble=$6&transcode_to=$7&bitrate=$8&player=$9&name=$10 last; - -# The following line necessary for me to be able to download single songs -rewrite ^/ampache/play/ssid/(.*)/type/(.*)/oid/([0-9]+)/uid/([0-9]+)/action/(.*)/name/(.*)$ /ampache/play/index.php?ssid=$1&type=$2&oid=$3&uid=$4action=$5&name=$6 last; - -# used for transfering art work to some clients, seems not to work for clementine because of an clementine-internal issue -location /ampache/play { - if (!-e $request_filename) { - rewrite ^/ampache/play/art/([^/]+)/([^/]+)/([0-9]+)/thumb([0-9]*)\.([a-z]+)$ /ampache/image.php?object_type=$2&object_id=$3&auth=$1; - break; - } - rewrite ^/([^/]+)/([^/]+)(/.*)?$ /ampache/play/$3?$1=$2; - rewrite ^/(/[^/]+|[^/]+/|/?)$ /ampache/play/index.php last; - break; -} - -location /ampache/rest { - limit_except GET POST { - deny all; - } -} diff --git a/arch_install.md b/arch_install.md index c9dd553..54ab914 100644 --- a/arch_install.md +++ b/arch_install.md @@ -1,3 +1,6 @@ +--- +title: arch_install +--- The following is a brief installation tutorial for [Arch Linux][1]. It assumes familiarity with the Arch [Beginner's Guide][2] and [Installation Guide][3]. diff --git a/docker.md b/docker.md index 32a48af..011c513 100644 --- a/docker.md +++ b/docker.md @@ -1,3 +1,7 @@ +--- +title: docker +--- + # docker ## concept diff --git a/grubshell.md b/grubshell.md index e64c335..b5a42b4 100644 --- a/grubshell.md +++ b/grubshell.md @@ -1,4 +1,7 @@ -## booter depuis le shell grub +--- +title: grub_shell +--- +# booter depuis le shell grub - les commande **cat** et **ls** fonctionne - trouver partition de boot @@ -23,4 +26,4 @@ grub rescue> linux /boot/vmlinuz-3.13.0-29-generic root=/dev/sda1 grub rescue> initrd /boot/initrd.img-3.13.0-29-generic grub rescue> boot` -[archwiki](https://wiki.archlinux.org/index.php/GRUB) \ No newline at end of file +[archwiki](https://wiki.archlinux.org/index.php/GRUB) diff --git a/nginx.md b/nginx.md index f952edd..5b68cd1 100644 --- a/nginx.md +++ b/nginx.md @@ -1,3 +1,7 @@ +--- +title: nginx +--- + # nginx ## reverse proxy ``` location /chainetv { @@ -11,4 +15,4 @@ ``` - le :/ aprés le socket sert a envoyer le sous répertoire a la suite de l'adresse demander l'appli écoute donc la route /api - la parie commenté a le même fonctionnement mais permet un réglage plus fin associer a flask et la classe ReverseProxied par exemple: - la location peut rediriger /chaine/api en metant le X-Script-ame a /chainetv l'appli peut donc écouter la route /api \ No newline at end of file + la location peut rediriger /chaine/api en metant le X-Script-ame a /chainetv l'appli peut donc écouter la route /api diff --git a/python.md b/python.md index 9ea1e20..4354c1b 100644 --- a/python.md +++ b/python.md @@ -1,3 +1,7 @@ +--- +title: python +--- + # python ## Virtual env diff --git a/virsh.md b/virsh.md index 5b47409..0f4f562 100644 --- a/virsh.md +++ b/virsh.md @@ -1,3 +1,6 @@ +--- +title: virsh +--- ## virsh usefull command ### standart @@ -15,4 +18,4 @@ - info snapshot: ` virsh snapshot-info --domain nas --snapshotname "ansible ping OK" ` - appliquer une snapshot: `virsh snapshot-revert --domain --snapshotname "ansible ping OK" --running` - delete snapshot: `virsh snapshot-delete --domain freebsd --snapshotname 5Sep2016_S2` -- \ No newline at end of file +-