1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/hubzilla_ynh.git synced 2024-09-03 19:26:21 +02:00

Updated readme,nginx.conf and check_process

This commit is contained in:
Anmol 2017-07-22 06:01:23 +05:30
parent fd16dedd2c
commit bae73d92a0
3 changed files with 85 additions and 41 deletions

View file

@ -1,4 +1,7 @@
# YunoHost App for Hubzilla Hub
# Hubzilla Hub for YunoHost
[![Install Dokuwiki with YunoHost](https://install-app.yunohost.org/install-with-yunohost.png)](https://install-app.yunohost.org/?app=hubzilla)
## Hubzilla
[Hubzilla](http://hubzilla.org) is a powerful platform for creating interconnected websites featuring a decentralized identity, commuhubzilla_test1nications, and permissions framework built using common webserver technology.
@ -9,6 +12,16 @@ Current snapshot in *sources*:
* https://github.com/redmatrix/hubzilla: 2.4.2 (commit 8896ebf7cbf20c242399c3821be5881e6068175a)
* https://github.com/redmatrix/hubzilla-addons: 2.4.2 (commit 30f3104ebe2121a433d174bb3bcb703bb9787bd3)
## To-Do's
- [X] Installation and remove script.
- [X] Ldap integration.
- [X] Upgrade script.
- [X] Backup and restore script(Need to be tested,but hopefully will work).
- [X] Remove the admin email,path and is_public form installation form.
- [X] Stop modification of php.ini : exec().
- [X] Make changes to nginx configuration accouding to Hubzilla official guide.
- [ ] Force redirection to https by default.
## Important Notes
Before installing, read the [Hubzilla installation instructions](https://github.com/redmatrix/hubzilla/blob/master/install/INSTALL.txt) for important information about
@ -27,7 +40,7 @@ Before installing, read the [Hubzilla installation instructions](https://github.
## Installation
### Register a new domain and add it to YunoHost
Hubzilla requires a dedicated domain, so obtain one and add it using the [YunoHost admin](https://reticu.li/yunohost/admin) panel. **Domains -> Add domain**. As Hubzilla uses the full domain and is installed on the root, you can create a subdomain such as hubzilla.domain.tld. Don't forget to update your DNS if you manage them manually.
Hubzilla requires a dedicated domain, so obtain one and add it using the YunoHost admin panel. **Domains -> Add domain**. As Hubzilla uses the full domain and is installed on the root, you can create a subdomain such as hubzilla.domain.tld. Don't forget to update your DNS if you manage them manually.
Hubzilla requires browser-approved SSL certificates. If you have certificates not issued by [Let's Encrypt](https://letsencrypt.org/), install them manually as usual.
@ -57,12 +70,12 @@ For older versions of YunoHost, once you have added the new domain, SSH into you
service nginx start
### Install the Hubzilla application
Use the [YunoHost admin](https://reticu.li/yunohost/admin) panel to install Hubzilla by entering the GitHub repo address in the custom app URL
Use the YunoHost admin panel to install Hubzilla by entering the GitHub repo address in the custom app URL
https://github.com/YunoHost-Apps/hubzilla_ynh
Make sure to select your domain from the previous section as the application domain. Also set the application to Public.
When installation is complete, you will need to visit your new hub and register a new account using the email address you specified in the app installation form. You should then be able to log in and create your first channel.
<strong>If above method do not work for you then you have give an account administrator access through phpMYAdmin by
adding 4096 to the account_roles for that account in the database.</strong>
When installation is complete, you will need to visit your new hub and login with the admin account you specified in the app installation form. You should then be able create your first channel and have the admin rights to the hub.
<strong>For normal YunoHost users:</strong>You can login through Ldap authentication and create the channel accourding to the hub settings.
<strong>For admin:</strong>If you don't see the admin rights in your nav bar drop down menu or want to grant admin rights for any other user on the hub then you have to manually add 4096 to the account_roles for that account in the database through phpMYAdmin.

View file

@ -3,23 +3,33 @@
; Manifest
domain="domain.tld" (DOMAIN)
admin="john" (USER)
path="/" (PATH)
email="johndoe@example.com"
upload="256M"
; Checks
pkg_linter=1
setup_sub_dir=0
setup_root=1
setup_nourl=0
setup_private=0
setup_public=1
upgrade=1
backup_restore=1
multi_instance=0
wrong_user=0
wrong_path=0
incorrect_path=0
corrupt_source=0
fail_download_source=0
port_already_use=0
final_path_already_use=0
; Checks
pkg_linter=1
setup_sub_dir=0
setup_root=1
setup_nourl=0
setup_private=0
setup_public=1
upgrade=1
backup_restore=1
multi_instance=0
incorrect_path=1
port_already_use=0
change_url=0
;;; Levels
Level 1=auto
Level 2=auto
Level 3=auto
# Level 4:
Level 4=0
# Level 5:
Level 5=auto
Level 6=auto
Level 7=auto
Level 8=0
Level 9=0
Level 10=0
;;; Options
Email=anmol@datamol.in
Notification=none

View file

@ -5,7 +5,7 @@ location YNH_WWW_PATH {
# Force https
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
rewrite ^ https://$server_name$request_uri? permanent;
}
# Example PHP configuration
@ -19,25 +19,46 @@ location YNH_WWW_PATH {
fastcgi_param REMOTE_USER $remote_user;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $request_filename;
# Set max upload size
client_max_body_size UPLOADTOCHANGE;
fastcgi_buffers 64 4K;
# Set max upload size
client_max_body_size UPLOADTOCHANGE;
fastcgi_buffers 64 4K;
}
# .htaccess file from Hubzilla converted using http://winginx.com/en/htaccess
location ~ "(^|/)\.git" { return 403; }
location ~ "(^|/)store" { return 403; }
autoindex off;
location / {
# Removing the .well-known rewrite below rule seems to work...
#rewrite ^/\.well\-known/.* /index.php?q=$1;
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?q=$1;
}
location ~ "(^|/)\.git" { return 403; }
location ~ "(^|/)store" { return 403; }
autoindex off;
location /
{
# Removing the .well-known rewrite below rule seems to work...
# rewrite ^/\.well\-known/.* /index.php?q=$1;
if (!-e $request_filename)
{
rewrite ^(.*)$ /index.php?q=$1;
}
}
# statically serve these file types when possible
# otherwise fall back to front controller
# allow browser to cache them
# added .htm for advanced source code editor library
location ~* \.(jpg|jpeg|gif|png|ico|css|js|htm|html|map|ttf|woff|woff2|svg)$
{
expires 30d;
try_files $uri /index.php?q=$uri&$args;
}
# block these file types
location ~* \.(tpl|md|tgz|log|out)$
{
deny all;
}
# deny access to all dot files
location ~ /\.
{
deny all;
}
# Include SSOWAT user panel.
# include conf.d/yunohost_panel.conf.inc;
}