Add doku wiki
This commit is contained in:
parent
49594e86a2
commit
ed3bcd0087
|
@ -0,0 +1,19 @@
|
|||
add_header Onion-Location http://wiki.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
|
||||
|
||||
root /var/www/dokuwiki;
|
||||
index index.php index.html index.htm;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
include /etc/nginx/fastcgi_params;
|
||||
}
|
||||
location ~ /(data|conf|bin|inc|vendor)/ {
|
||||
deny all;
|
||||
}
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
root /var/www/roundcube/;
|
||||
index index.php index.html index.htm;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php;
|
||||
}
|
||||
|
||||
location ~ \.php(?:$|/) {
|
||||
try_files $uri = 404;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
fastcgi_param HTTPS on;
|
||||
fastcgi_param modHeadersAvailable true;
|
||||
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
|
||||
fastcgi_intercept_errors on;
|
||||
fastcgi_buffers 4 256k;
|
||||
fastcgi_busy_buffers_size 256k;
|
||||
}
|
||||
|
||||
|
|
@ -81,3 +81,16 @@ location ~ ^/(~|u/)(?<user>[\w-]+)(?<user_uri>/.*)?$ {
|
|||
return 307 https://vern.cc/;
|
||||
}
|
||||
}
|
||||
|
||||
location /wiki {
|
||||
root /home/ikiwiki/public_html/vernwiki;
|
||||
index index.html index.htm;
|
||||
try_files $uri $uri/;
|
||||
}
|
||||
location /wiki/ikiwiki.cgi {
|
||||
fastcgi_pass unix:/tmp/fcgi.socket;
|
||||
fastcgi_index ikiwiki.cgi;
|
||||
fastcgi_param SCRIPT_FILENAME /home/ikiwiki/public_html/vernwiki/ikiwiki.cgi;
|
||||
fastcgi_param DOCUMENT_ROOT /home/ikiwiki/public_html/vernwiki;
|
||||
include /etc/nginx/fastcgi_params;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
|
||||
server_name wiki.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion;
|
||||
|
||||
include common/dokuwiki.conf;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 11027;
|
||||
listen [::]:11027;
|
||||
|
||||
server_name vernknid6kpyzaghegtnypzxe2nx643zrfc4jivh2tlna5m5jvcq.b32.i2p;
|
||||
|
||||
include common/dokuwiki.conf;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
server_name wiki.vern.cc;
|
||||
include snippets/lets-encrypt.conf;
|
||||
include snippets/headers.conf;
|
||||
include common/dokuwiki.conf;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
return 301 https://$host$request_uri;
|
||||
server_name wiki.vern.cc;
|
||||
}
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
server {
|
||||
root /home/anarcat/public_html/wiki.reseaulibre.ca/;
|
||||
index index.html index.htm;
|
||||
|
||||
# Make site accessible from http://localhost/
|
||||
server_name wiki.reseaulibre.ca;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
location /ikiwiki.cgi {
|
||||
fastcgi_pass unix:/tmp/fcgi.socket;
|
||||
fastcgi_index ikiwiki.cgi;
|
||||
fastcgi_param SCRIPT_FILENAME /home/anarcat/public_html/ikiwiki.cgi;
|
||||
fastcgi_param DOCUMENT_ROOT /home/anarcat/public_html/wiki.reseaulibre.ca;
|
||||
include /etc/nginx/fastcgi_params;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,32 @@
|
|||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
|
||||
server_name wm.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion;
|
||||
|
||||
include common/roundcube.conf;
|
||||
}
|
||||
|
||||
#server {
|
||||
# listen 11000;
|
||||
# listen [::]:11000;
|
||||
#
|
||||
# server_name vernj47t2vz4qiobsrcaj6eqhaquqe5qsaejga2glol4b2snhcfa.b32.i2p;
|
||||
#
|
||||
# include common/gitea.conf;
|
||||
#}
|
||||
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
server_name wm.vern.cc;
|
||||
include snippets/lets-encrypt.conf;
|
||||
include snippets/headers.conf;
|
||||
include common/roundcube.conf;
|
||||
}
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name wm.vern.cc;
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
/etc/nginx/sites-available/dokuwiki.conf
|
|
@ -0,0 +1 @@
|
|||
/etc/nginx/sites-available/roundcube.conf
|
Loading…
Reference in New Issue