{"action":"created","issue":{"url":"https://api.github.com/repos/Fourdee/DietPi/issues/168","repository_url":"https://api.github.com/repos/Fourdee/DietPi","labels_url":"https://api.github.com/repos/Fourdee/DietPi/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/Fourdee/DietPi/issues/168/comments","events_url":"https://api.github.com/repos/Fourdee/DietPi/issues/168/events","html_url":"https://github.com/Fourdee/DietPi/issues/168","id":126657396,"number":168,"title":"DietPi-Software |  Add Seafile CE","user":{"login":"supercoollbob","id":16687858,"avatar_url":"https://avatars.githubusercontent.com/u/16687858?v=3","gravatar_id":"","url":"https://api.github.com/users/supercoollbob","html_url":"https://github.com/supercoollbob","followers_url":"https://api.github.com/users/supercoollbob/followers","following_url":"https://api.github.com/users/supercoollbob/following{/other_user}","gists_url":"https://api.github.com/users/supercoollbob/gists{/gist_id}","starred_url":"https://api.github.com/users/supercoollbob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/supercoollbob/subscriptions","organizations_url":"https://api.github.com/users/supercoollbob/orgs","repos_url":"https://api.github.com/users/supercoollbob/repos","events_url":"https://api.github.com/users/supercoollbob/events{/privacy}","received_events_url":"https://api.github.com/users/supercoollbob/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Fourdee/DietPi/labels/Software%20Request","name":"Software Request","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"Fourdee","id":7077026,"avatar_url":"https://avatars.githubusercontent.com/u/7077026?v=3","gravatar_id":"","url":"https://api.github.com/users/Fourdee","html_url":"https://github.com/Fourdee","followers_url":"https://api.github.com/users/Fourdee/followers","following_url":"https://api.github.com/users/Fourdee/following{/other_user}","gists_url":"https://api.github.com/users/Fourdee/gists{/gist_id}","starred_url":"https://api.github.com/users/Fourdee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fourdee/subscriptions","organizations_url":"https://api.github.com/users/Fourdee/orgs","repos_url":"https://api.github.com/users/Fourdee/repos","events_url":"https://api.github.com/users/Fourdee/events{/privacy}","received_events_url":"https://api.github.com/users/Fourdee/received_events","type":"User","site_admin":false},"assignees":[{"login":"Fourdee","id":7077026,"avatar_url":"https://avatars.githubusercontent.com/u/7077026?v=3","gravatar_id":"","url":"https://api.github.com/users/Fourdee","html_url":"https://github.com/Fourdee","followers_url":"https://api.github.com/users/Fourdee/followers","following_url":"https://api.github.com/users/Fourdee/following{/other_user}","gists_url":"https://api.github.com/users/Fourdee/gists{/gist_id}","starred_url":"https://api.github.com/users/Fourdee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fourdee/subscriptions","organizations_url":"https://api.github.com/users/Fourdee/orgs","repos_url":"https://api.github.com/users/Fourdee/repos","events_url":"https://api.github.com/users/Fourdee/events{/privacy}","received_events_url":"https://api.github.com/users/Fourdee/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Fourdee/DietPi/milestones/11","html_url":"https://github.com/Fourdee/DietPi/milestones/Prototyping","labels_url":"https://api.github.com/repos/Fourdee/DietPi/milestones/11/labels","id":1610212,"number":11,"title":"Prototyping","description":"For all tickets that are: Open discussions. Partially started and need work completing. Not assigned to any version milestone.","creator":{"login":"Fourdee","id":7077026,"avatar_url":"https://avatars.githubusercontent.com/u/7077026?v=3","gravatar_id":"","url":"https://api.github.com/users/Fourdee","html_url":"https://github.com/Fourdee","followers_url":"https://api.github.com/users/Fourdee/followers","following_url":"https://api.github.com/users/Fourdee/following{/other_user}","gists_url":"https://api.github.com/users/Fourdee/gists{/gist_id}","starred_url":"https://api.github.com/users/Fourdee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fourdee/subscriptions","organizations_url":"https://api.github.com/users/Fourdee/orgs","repos_url":"https://api.github.com/users/Fourdee/repos","events_url":"https://api.github.com/users/Fourdee/events{/privacy}","received_events_url":"https://api.github.com/users/Fourdee/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":3,"state":"open","created_at":"2016-02-28T15:09:27Z","updated_at":"2016-08-31T11:43:50Z","due_on":null,"closed_at":null},"comments":16,"created_at":"2016-01-14T13:45:08Z","updated_at":"2016-09-01T18:08:50Z","closed_at":null,"body":"Seafile e.g. Dropbox \r\nhttps://forum.seafile-server.org/t/tutorial-for-seafile-ce-nginx-on-arm/3023"},"comment":{"url":"https://api.github.com/repos/Fourdee/DietPi/issues/comments/244163228","html_url":"https://github.com/Fourdee/DietPi/issues/168#issuecomment-244163228","issue_url":"https://api.github.com/repos/Fourdee/DietPi/issues/168","id":244163228,"user":{"login":"Fourdee","id":7077026,"avatar_url":"https://avatars.githubusercontent.com/u/7077026?v=3","gravatar_id":"","url":"https://api.github.com/users/Fourdee","html_url":"https://github.com/Fourdee","followers_url":"https://api.github.com/users/Fourdee/followers","following_url":"https://api.github.com/users/Fourdee/following{/other_user}","gists_url":"https://api.github.com/users/Fourdee/gists{/gist_id}","starred_url":"https://api.github.com/users/Fourdee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fourdee/subscriptions","organizations_url":"https://api.github.com/users/Fourdee/orgs","repos_url":"https://api.github.com/users/Fourdee/repos","events_url":"https://api.github.com/users/Fourdee/events{/privacy}","received_events_url":"https://api.github.com/users/Fourdee/received_events","type":"User","site_admin":false},"created_at":"2016-09-01T18:08:50Z","updated_at":"2016-09-01T18:08:50Z","body":"@Zone22 \r\n\r\n> I'll continue to make crack at it you can leave me what you have done thus far...\r\nReally I see the script is something maybe to be used beyond Seafile CE. It could be used as a standard set up server applications behind a reverse proxy with secure settings per application. This would obviously grow as we have time to incorporate best practice and server applications.\r\n\r\nI have no idea what state my notes are in. So it would probably be best to start from scratch, but heres my notes:\r\n```\r\n#Seafile CE -----------------------------------------------------------------------\r\n# https://github.com/seafile/seafile-server-installer/blob/master/seafile_v5_debian\r\n\r\nRequires L*MP stack\r\n\r\n# - postfix\r\ndebconf-set-selections << EOF\r\npostfix postfix/root_address    string\r\npostfix postfix/rfc1035_violation       boolean false\r\npostfix postfix/mydomain_warning        boolean\r\npostfix postfix/mynetworks      string  127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128\r\npostfix postfix/mailname        string  $(hostname -f)\r\npostfix postfix/tlsmgr_upgrade_warning  boolean\r\npostfix postfix/recipient_delim string  +\r\npostfix postfix/main_mailer_type        select  Internet Site\r\npostfix postfix/destinations    string  $(hostname -f), localhost.$(hostname -d)\r\npostfix postfix/retry_upgrade_warning   boolean\r\n# Install postfix despite an unsupported kernel?\r\npostfix postfix/kernel_version_warning  boolean\r\npostfix postfix/not_configured  error\r\npostfix postfix/sqlite_warning  boolean\r\npostfix postfix/mailbox_limit   string  0\r\npostfix postfix/relayhost       string\r\npostfix postfix/procmail        boolean false\r\npostfix postfix/bad_recipient_delimiter error\r\npostfix postfix/protocols       select  all\r\npostfix postfix/chattr  boolean false\r\nEOF\r\napt-get install postfix -y\r\ndpkg-reconfigure postfix\r\n\r\n# - Seafile prereqs\r\napt-get install -y python-setuptools python-simplejson python-imaging python-mysqldb memcached python-memcache pwgen curl openssl\r\n# + Pro\r\napt-get install -y python3-uno libpython2.7 openjdk-7-jre libreoffice libreoffice-script-provider-python ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy poppler-utils python-urllib3\r\n\r\n\r\n# - Seafile services\r\ncat << _EOF_ > /etc/systemd/system/seafile.service\r\n[Unit]\r\nDescription=Seafile Server\r\nAfter=network.target dietpi-service mysql.service\r\n[Service]\r\nType=oneshot\r\nExecStart=/opt/seafile/seafile-server/seafile.sh start\r\nExecStop=/opt/seafile/seafile-server/seafile.sh stop\r\nRemainAfterExit=yes\r\nUser=root\r\nGroup=nogroup\r\n[Install]\r\nWantedBy=multi-user.target\r\n_EOF_\r\nsystemctl enable seafile\r\ncat << _EOF_ > /etc/systemd/system/seahub.service\r\n[Unit]\r\nDescription=Seafile Seahub\r\nAfter=network.target dietpi-service seafile.service\r\n[Service]\r\nExecStart=/opt/seafile/seafile-server/seahub.sh start-fastcgi 8000\r\nExecStop=/opt/seafile/seafile-server/seahub.sh stop\r\nUser=root\r\nGroup=nogroup\r\nType=oneshot\r\nRemainAfterExit=yes\r\n[Install]\r\nWantedBy=multi-user.target\r\n_EOF_\r\nsystemctl enable seahub\r\n\r\n\r\n# - Create SQL DB\r\n/DietPi/dietpi/func/create_mysql_db ccnet-db dietpi root dietpi\r\n/DietPi/dietpi/func/create_mysql_db seafile-db dietpi root dietpi\r\n/DietPi/dietpi/func/create_mysql_db seahub-db dietpi root dietpi\r\n\r\n\r\n# - Download Seafile\r\n# - RPi armv6: wget https://download.seafile.de/server/community/raspbian/seafile-server_stable_5.1.2_pi.tar.gz -O package.tar\r\n# - x64 (vm): wget https://download.seafile.de/seafile-server_latest_x86-64.tar.gz -O package.tar\r\ntar xzf package.tar\r\nrm package.tar\r\n\r\nmkdir -p /opt/seafile/seafile-server\r\nmv seafile-server-* /opt/seafile/seafile-server\r\n\r\n# - confs\r\nmkdir -p /opt/seafile/conf\r\n\r\ncat << _EOF_ > /opt/seafile/conf/ccnet.conf\r\n[Database]\r\nENGINE = mysql\r\nHOST = 127.0.0.1\r\nPORT = 3306\r\nUSER = root\r\nPASSWD = dietpi\r\nDB = ccnet-db\r\nCONNECTION_CHARSET = utf8\r\n_EOF_\r\n\r\n\r\ncat << _EOF_ > /opt/seafile/conf/seafile.conf\r\n[database]\r\ntype = mysql\r\nhost = 127.0.0.1\r\nport = 3306\r\nuser = root\r\npassword = dietpi\r\ndb_name = seafile-db\r\nconnection_charset = utf8\r\n_EOF_\r\n\r\n\r\ncat << _EOF_ > /opt/seafile/conf/seahub_settings.py\r\nDATABASES = {\r\n    'default': {\r\n        'ENGINE': 'django.db.backends.mysql',\r\n        'NAME': 'seahub-db',\r\n        'USER': 'root',\r\n        'PASSWORD': 'dietpi',\r\n        'HOST': '127.0.0.1',\r\n        'PORT': '3306',\r\n        'OPTIONS': {\r\n            'init_command': 'SET storage_engine=INNODB',\r\n        }\r\n    }\r\n}\r\nCACHES = {\r\n    'default': {\r\n        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',\r\n    'LOCATION': '127.0.0.1:11211',\r\n    }\r\n}\r\nEMAIL_USE_TLS                       = False\r\nEMAIL_HOST                          = 'localhost'\r\nEMAIL_HOST_USER                     = ''\r\nEMAIL_HOST_PASSWORD                 = ''\r\nEMAIL_PORT                          = '25'\r\nDEFAULT_FROM_EMAIL                  = 'noreply@${HOSTNAME}'\r\nSERVER_EMAIL                        = 'EMAIL_HOST_USER'\r\nTIME_ZONE                           = '${SEAFILE_SERVER_TIME_ZONE}'\r\nSITE_BASE                           = 'https://${HOSTNAME}'\r\nSITE_NAME                           = 'Seafile Server'\r\nSITE_TITLE                          = 'Seafile Server'\r\nENABLE_SIGNUP                       = False\r\nACTIVATE_AFTER_REGISTRATION         = False\r\nSEND_EMAIL_ON_ADDING_SYSTEM_MEMBER  = True\r\nSEND_EMAIL_ON_RESETTING_USER_PASSWD = True\r\nCLOUD_MODE                          = False\r\nFILE_PREVIEW_MAX_SIZE               = 30 * 1024 * 1024\r\nSESSION_COOKIE_AGE                  = 60 * 60 * 24 * 7 * 2\r\nSESSION_SAVE_EVERY_REQUEST          = False\r\nSESSION_EXPIRE_AT_BROWSER_CLOSE     = False\r\nFILE_SERVER_ROOT                    = 'https://${HOSTNAME}/seafhttp'\r\nREPO_PASSWORD_MIN_LENGTH            = 8\r\nUSER_PASSWORD_MIN_LENGTH            = 6\r\nUSER_PASSWORD_STRENGTH_LEVEL        = 3\r\nUSER_STRONG_PASSWORD_REQUIRED       = True\r\nENABLE_MAKE_GROUP_PUBLIC            = False\r\nENABLE_THUMBNAIL                    = True\r\nTHUMBNAIL_ROOT                      = '/opt/seafile/seafile-server/seahub-data/thumbnail/thumb/'\r\nREPO_PASSWORD_MIN_LENGTH            = 8\r\nUSER_PASSWORD_MIN_LENGTH            = 8\r\nUSER_PASSWORD_STRENGTH_LEVEL        = 3\r\nUSER_STRONG_PASSWORD_REQUIRED       = True\r\n_EOF_\r\n\r\n\r\n\r\n#Seafile CE -----------------------------------------------------------------------\r\n```\r\n\r\n> While I can work on puzzling out I think it will be worth your time to create a guide on how to add software/or customization so that others can learn contribute. Do you think it's worthwhile for a ticket to be created?\r\n\r\nExcellent idea, i'll sort that out :+1: "}}
{"actor":{"display_login":"Fourdee"}}