about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSilvino Silva <silvino@bk.ru>2019-02-07 13:50:02 +0000
committerSilvino Silva <silvino@bk.ru>2019-02-07 13:50:02 +0000
commitbdfc05251acbb99c6bbcd4ff794a01dde2f8dc3b (patch)
tree93b7fbde96409fd6e164380bb10e77f4a7400eb6
parent57a604e35930f4f58aabe93c8c51de5ee378813c (diff)
parent390a4d2fbef2d8c814d7b2fb00cc0c4db3964c55 (diff)
downloaddoc-bdfc05251acbb99c6bbcd4ff794a01dde2f8dc3b.tar.gz
release 0.4.1
-rw-r--r--dev/git/index.html33
-rw-r--r--index.html2
-rw-r--r--tools/nginx.html162
-rw-r--r--tools/scripts/pkgmk-test.conf4
-rw-r--r--tools/vim.html23
-rw-r--r--tools/x.html2
6 files changed, 170 insertions, 56 deletions
diff --git a/dev/git/index.html b/dev/git/index.html
index b41f7a1..4e61822 100644
--- a/dev/git/index.html
+++ b/dev/git/index.html
@@ -17,6 +17,24 @@
        $ git config --global user.email user@devbox
     </pre>
 
+    <p>If you want to disable pager / paging you can set globally;</p>
+
+    <pre>
+    $ git config --global core.pager cat
+    </pre>
+
+    <p>Paging based on output size with less;</p>
+
+    <pre>
+    git config --global --replace-all core.pager "less -F -X"
+    </pre>
+
+    <p>Example to disable for just one subcommand and local repository;</p>
+
+    <pre>
+    $ git config pager.diff cat
+    </pre>
+
     <p>Assumptions of this document;</p>
 
     <ul>
@@ -51,6 +69,12 @@
 
     <p>Main Branches;</p>
 
+    <pre>
+    ___A___________AB_____ Master
+        \___B_____/ \____  Develop
+
+    </pre>
+
     <dl>
         <dt>master</dt>
         <dd>Current official stable release history.</dd>
@@ -60,6 +84,15 @@
 
     <p>Add-on Branches;</p>
 
+    <pre>
+    _A_________________AFR___________________AFRHR Master
+     \            _AFR_/   \        _AFRHR_/\      Release
+      \          /          \_AFRH_/         \     Hotfix
+       \________/_____________________________\__  Develop
+         \_F_/     \_F1_/                          Feature
+
+    </pre>
+
     <dl>
         <dt>feature (f-)</dt>
         <dd>New features, improvement proposal, tests, etc...</dd>
diff --git a/index.html b/index.html
index 1368ebe..41d7690 100644
--- a/index.html
+++ b/index.html
@@ -38,7 +38,7 @@
         <p>Version;</p>
 
         <pre>
-        rev 0.4.0
+        rev 0.4.1
         </pre>
 
         <a href="links.html">Links</a> contains relevant
diff --git a/tools/nginx.html b/tools/nginx.html
index 7094ac7..d64356d 100644
--- a/tools/nginx.html
+++ b/tools/nginx.html
@@ -60,11 +60,11 @@
         <p>First run dryrun to test if everything is ok;</p>
 
         <pre>
-        # certbot certonly --dry-run --email user@mail.org --webroot -w /srv/www/c9-pmwiki/pub/cert/-d hive.gnu.systems
+        # certbot certonly --dry-run --email user@mail.org --webroot -w /srv/www/c9-pmwiki/pub/cert/-d example.sub.domain
         </pre>
 
         <pre>
-        # certbot certonly --email user@mail.org --webroot -w /srv/www/c9-pmwiki/pub/cert/-d hive.gnu.systems
+        # certbot certonly --email user@mail.org --webroot -w /srv/www/c9-pmwiki/pub/cert/-d example.sub.domain
         </pre>
 
         <h3 id="mancert">2.2. Self certificate</h2>
@@ -175,7 +175,7 @@
         1024
         </pre>
 
-       <p>Example of http block with ssl configured;</p>
+        <p>Edit ngnix configutarion;</p>
 
         <pre>
         #
@@ -183,7 +183,7 @@
         #
 
 
-        user nginx;
+        user www;
         worker_processes auto;
 
         error_log /var/log/nginx/error.log;
@@ -195,34 +195,31 @@
             worker_connections  1024;
         }
 
-
         http {
             include       mime.types;
             default_type  application/octet-stream;
 
-            ##
-            # SSL Settings
-            ##
-            ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
-            ssl_prefer_server_ciphers on;
-
-            # ssl on;
-            ssl_certificate /etc/ssl/certs/nginx.crt;
-            ssl_certificate_key /etc/ssl/keys/nginx.key;
-
             #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
             #                  '$status $body_bytes_sent "$http_referer" '
             #                  '"$http_user_agent" "$http_x_forwarded_for"';
 
-            access_log /var/log/nginx/access.log;
-            error_log  /var/log/nginx/error.log;
-
             sendfile        on;
             #tcp_nopush     on;
 
-            keepalive_timeout  65;
-            client_body_timeout 12;
-            client_header_timeout 12;
+            # Allow attach iso to wiki
+            #client_max_body_size 8M;
+            client_max_body_size 30M;
+            #keepalive_timeout  65;
+            keepalive_timeout  120;
+            #client_body_timeout 12;
+            client_body_timeout 24;
+            #client_header_timeout 12;
+            client_header_timeout 24;
+
+            #client_max_body_size 10000M;
+            #keepalive_timeout  10000;
+            #client_body_timeout 10000;
+            #client_header_timeout 10000;
             send_timeout 65;
 
 
@@ -235,15 +232,6 @@
             gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
 
 
-            ##
-            # Virtual Host Configs
-            ##
-            server {
-                listen         80 default_server;
-                server_name _;
-                return         301 https://$host$request_uri;
-            }
-
             include /etc/nginx/conf.d/*.conf;
             include /etc/nginx/sites-enabled/*.conf;
 
@@ -294,48 +282,113 @@
 
         <p> This server is configured in a way that
         root serves pmwiki and /tasks serves flyspray. In order to
-        flyspray to link correctly change index is needed;</p>
+        flyspray to link correctly change index is needed. Create /etc/nginx/sites-enabled/example.sub.domain.conf;</p>
 
         <pre>
         server {
+
             listen 443 ssl;
-            # listen [::]:443 ssl;
+            listen 80;
+            server_name example.sub.domain;
+
+            #  listen [::]:443 ssl http2;
+            ssl_certificate /etc/letsencrypt/live/example.sub.domain/fullchain.pem;
+            ssl_certificate_key /etc/letsencrypt/live/example.sub.domain/privkey.pem;
+            ssl_trusted_certificate /etc/letsencrypt/live/example.sub.domain/chain.pem;
+
+            ssl_session_timeout 1d;
+            ssl_session_cache shared:SSL:50m;
+            ssl_session_tickets off;
+            ssl_protocols TLSv1.2;
+            ssl_ciphers 'ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256';
+            ssl_prefer_server_ciphers on;
+            add_header Strict-Transport-Security max-age=15768000;
+            ssl_stapling on;
+            ssl_stapling_verify on;
 
-            server_name c9.core;
+            access_log /var/log/nginx/example_access.log;
+            error_log  /var/log/nginx/example_error.log;
 
-            root /srv/www/default;
+            root /srv/www/;
 
-            location /distfiles {
-                alias /usr/ports/distfiles;
+            location /mirror {
+                #alias /usr/ports/releases;
+                proxy_pass http://10.0.0.3:80/;
             }
 
+            location /builder {
+                rewrite ^/blog(.*) /$1 break;
+                proxy_pass http://10.0.0.3:80;
+            }
 
-            location /tasks {
+            location /doc {
+                alias /srv/www/doc;
+                index index.html;
+            }
+
+            location /git/static {
+                # static files (png/css) served from /usr/share/gitweb/static
+                alias /srv/www/gitweb/static;
+            }
+
+            location /git {
+                alias /srv/www/gitweb;
+                index gitweb.cgi;
+                fastcgi_split_path_info      ^/git()(/?.+)$;
+                fastcgi_param GITWEB_CONFIG  /etc/gitweb.conf;
+                fastcgi_param DOCUMENT_ROOT  /srv/www/gitweb;
+                fastcgi_param SCRIPT_NAME    /gitweb.cgi$fastcgi_path_info;
+
+                include fastcgi_params;
+                fastcgi_pass unix:/var/run/fcgiwrap.sock;
+            }
+
+            location /chat {
                 index index.php;
-                alias /srv/www/default/flyspray;
+                alias /srv/www/chat;
                 try_files $uri $uri/ index.php$is_args$args;
             }
 
-            location ~  ^/tasks(.+\.php)$ {
-                alias /srv/www/default/flyspray;
+            location ~  ^/chat(.+\.php)$ { ### This location block was the solution
+                alias /srv/www/chat;
+                fastcgi_split_path_info ^(.+\.php)(/.+)$;
+                fastcgi_index index.php;
+                try_files $uri /index.php =404;	
+                include /etc/nginx/fastcgi_params;
+                fastcgi_param SCRIPT_FILENAME $document_root$1;
+                # fastcgi_pass unix:/var/run/php5-fpm.sock;
+                fastcgi_pass 127.0.0.1:9000;
+            }
+
+
+            location /task {
+                index index.php;
+                alias /srv/www/flyspray;
+                try_files $uri $uri/ index.php$is_args$args;
+            }
 
+            location ~  ^/task(.+\.php)$ { ### This location block was the solution
+                alias /srv/www/flyspray;
                 fastcgi_split_path_info ^(.+\.php)(/.+)$;
                 fastcgi_index index.php;
-                try_files $uri /index.php =404;
+                try_files $uri /index.php =404;	
                 include /etc/nginx/fastcgi_params;
                 fastcgi_param SCRIPT_FILENAME $document_root$1;
                 # fastcgi_pass unix:/var/run/php5-fpm.sock;
                 fastcgi_pass 127.0.0.1:9000;
             }
 
-            location / {
-                alias /srv/www/default/pmwiki/;
-                index pmwiki.php
+            location /pub {
+                alias /srv/www/pmwiki/pub;
+            }
+            location /wiki {
+                alias /srv/www/pmwiki/;
+                index pmwiki.php;
                 try_files $uri $uri/ /pmwiki.php$is_args$args;
             }
-
-            location ~ \.php$ {
-                alias /srv/www/default/pmwiki;
+            location ~  ^/wiki(.+\.php)$ {
+                alias /srv/www/pmwiki;
+                index pmwiki.php;
                 fastcgi_split_path_info ^(.+\.php)(/.+)$;
                 fastcgi_index pmwiki.php;
                 try_files $uri /pmwiki.php =404;
@@ -344,6 +397,21 @@
                 # fastcgi_pass unix:/var/run/php5-fpm.sock;
                 fastcgi_pass 127.0.0.1:9000;
             }
+
+            # ACME challenge
+            location ^~ /.well-known {
+                allow all;
+                alias /srv/www/pmwiki/pub/cert/.well-known/;
+                default_type "text/plain";
+                try_files $uri =404;
+            }
+
+            location / {
+                alias /srv/www/frontpage/;
+                index index.html;
+                try_files $uri $uri/ /index.html$is_args$args;
+            }
+
         }
         </pre>
 
diff --git a/tools/scripts/pkgmk-test.conf b/tools/scripts/pkgmk-test.conf
index 715ac01..c5f70e4 100644
--- a/tools/scripts/pkgmk-test.conf
+++ b/tools/scripts/pkgmk-test.conf
@@ -4,11 +4,11 @@
 
 source /etc/pkgmk.conf
 
-#PKGMK_SOURCE_MIRRORS=()
+PKGMK_SOURCE_MIRRORS=(http://c1.ank/distfiles/)
 PKGMK_SOURCE_DIR="$PWD"
 PKGMK_PACKAGE_DIR="$PWD"
 PKGMK_WORK_DIR="$PWD/work"
-# PKGMK_DOWNLOAD="no"
+PKGMK_DOWNLOAD="yes"
 # PKGMK_IGNORE_FOOTPRINT="no"
 # PKGMK_IGNORE_NEW="no"
 # PKGMK_NO_STRIP="no"
diff --git a/tools/vim.html b/tools/vim.html
index 6b9ec31..b3354d8 100644
--- a/tools/vim.html
+++ b/tools/vim.html
@@ -44,7 +44,7 @@
         <p>Default vimrc skeleton is configured to use wombat2mod,
         which is installed by adduser skeleton.</p>
 
-        <h2 id="spacetab">3. Split and tab</h2>
+        <h2 id="spacetab">3. Split and Tab</h2>
 
         <p>Horizontal split;</p>
         <pre>
@@ -72,7 +72,20 @@
         ctrl+w (k,j,l,h)
         </pre>
 
-        <h2 id="edit">4. Editing files</h2>
+        <h2 id="filebrowser">4. File browser</h2>
+
+        <p>Use built in netrw to see directories and files;</p>
+
+        <dl>
+            <dt>:Explore</dt>
+            <dd>Opens window with file browser.</dd>
+            <dt>:Sex</dt>
+            <dd>Open horizontal split with file browser.</dd>
+            <dt>:Vex</dt>
+            <dd>Open vertical split with file browser.</dd>
+        </dl>
+
+        <h2 id="edit">5. Editing files</h2>
 
         <p>Come from background;</p>
 
@@ -166,15 +179,15 @@
             comma (,), press esc to confirm.</dd>
         </dl>
 
-        <h2 id="spellcheck"> Spell check</h2>
+        <h2 id="spellcheck">6. Spell check</h2>
 
         <p>Press z= over the bad written word and select desired one.</p>
 
-        <h2 id="plugin">6. Plugins</h2>
+        <h2 id="plugin">7. Plugins</h2>
 
         <a href="index.html">Systools Index</a>
         <p>This is part of the Hive System Documentation.
-        Copyright (C) 2018
+        Copyright (C) 2019
         Hive Team.
         See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a>
         for copying conditions.</p>
diff --git a/tools/x.html b/tools/x.html
index 79d1757..c693062 100644
--- a/tools/x.html
+++ b/tools/x.html
@@ -155,7 +155,7 @@
         fi
         </pre>
 
-        <h3>Global keyboard config </h3>
+        <h3 id="confkeyboard">Global keyboard config </h3>
 
 	<p>Xorg global default keyboard configuration; <a href="conf/etc/X11/xorg.conf.d/10-keyboard.conf">/etc/X11/xorg.conf.d/10-keyboard.conf</a></p>