Initial stab at nextcloud playbook running on nginx#2119
Initial stab at nextcloud playbook running on nginx#2119m-anish wants to merge 4 commits intoiiab:masterfrom
Conversation
| #fastcgi_hide_header X-Powered-By; | ||
|
|
||
| # Path to the root of your installation | ||
| root /library/www/html/; |
There was a problem hiding this comment.
I had to do this instead of root /library/www/html/nextcloud/; because with that, the calls were going to .../nextcloud/nextcloud/...
| #add_header Referrer-Policy "no-referrer" always; | ||
| #add_header X-Content-Type-Options "nosniff" always; | ||
| #add_header X-Download-Options "noopen" always; | ||
| #add_header X-Frame-Options "SAMEORIGIN" always; | ||
| #add_header X-Permitted-Cross-Domain-Policies "none" always; | ||
| #add_header X-Robots-Tag "none" always; | ||
| #add_header X-XSS-Protection "1; mode=block" always; |
There was a problem hiding this comment.
The nextcloud admin console complains about a bunch of settings with the same name not enabled, but I don't know anything about this. Could this be the culprit? Is this relevant?
|
@holta @jvonau @tim-moody @georgejhunt please test, review, help out if possible. :) |
|
Is this PR trying to address #2021 "Nextcloud stores its data in /opt/ instead of /library/" or not yet ? |
|
Does this PR address #2117 "NGINX: Nextcloud broken icons & broken links, erroneously contain http://127.0.0.1:8090" or not yet? |
not yet |
It seems so! I don't see broken links. |
| - name: Nextcloud - Uncomment lines from /etc/php/7.*/fpm/pool.d/www.conf | ||
| lineinfile: | ||
| dest: "/etc/php/{{ php_version }}/fpm/pool.d/www.conf" | ||
| regexp: "^;({{ item }}.*)$" | ||
| line: "\\1" | ||
| backrefs: yes | ||
| state: present | ||
| with_items: | ||
| - "env[HOSTNAME]" | ||
| - "env[PATH]" | ||
| - "env[TMP]" | ||
| - "env[TMPDIR]" | ||
| - "env[TEMP]" |
There was a problem hiding this comment.
This doesn't seem to work! Please fix.
Let's help everyone test frequently & on a diversity of OS's — by reminding them that Nextcloud downloads can be ~1000X faster if they follow these instructions that should be restored into nextcloud/defaults/main.yml : |
|
How does updating nextcloud's nginx config file grow into a complete rewrite of the role? Don't forget to disable the nextcloud stanza in roles/nginx/tasks/uses_apache.yml |
CORRECTION: above test was using the wrong branch. Apologies. Restarting the test now... |
|
iiab-admin@box:~ $ cat /etc/nginx/conf.d/nextcloud-nginx.conf location ~ /nextcloud/.*.php$ { using the old template from uses_apache.yml |
Thx for the pointer. The older nextcloud playbook was long and twisted to accommodate different versions, settings, etc. on different OSes, which was relevant a while ago, but not anymore. I just found it a lot cleaner to do from scratch, reducing the size of the playbook. Things are still left out as I point out, but it should just be a matter of copying some tasks over from the older playbook. |
Of course fine for a proof-of-concept to try out new things! But after experimentation, it will be essential to add back the pieces that were very carefully refined over the years, including for example:
And yes documentation needs to be readable too (OMG!) anyway thanks...just a quick summary of stuff needed as this PR #2119 hopefully stabilizes soon! |
| file: | ||
| path: "{{ nextcloud_data_dir }}" | ||
| #TODO: Figure out who should be owner of this directory | ||
| - name: Nextcloud - Extract source {{ doc_root }}/{{ nextcloud_url }} |
There was a problem hiding this comment.
| - name: Nextcloud - Extract source {{ doc_root }}/{{ nextcloud_url }} | |
| - name: Nextcloud - Extract source {{ doc_root }}{{ nextcloud_url }} |
noted all. I wasn't aware of the install/setup/enable/ triad (plus main). I did install/uninstall to keep things very simple just as i did with cham, but can change to this scheme. Anyway, more imp right now is to get all the steps in before figuring out how to split them :) |
Fixed! 0285294 |
|
@m-anish gets the credit for kicking this off. Now 5 weeks later, there's a need to polish & push this into production. So I refined it within PR #2255 which I'm hoping can be merged very shortly now (e.g. in coming hours?) Even while it's not 100% perfect e.g. some Nextcloud's promo video doesn't play on 1st installation. Still, this work should make for a big step forward, giving real options to the many communities globally that keep demanding a "DIY LMS" along the lines of Nextcloud/WordPress ! |
|
@m-anish: I'm checked off 4 of your 8 boxes at the top of this ticket above based on PR #2255 now merged. Next to the 4 remaining checkboxes, can you perhaps add a 5th checkbox for Nextcloud video(s) not displaying ? (I've annotated this video/redirect problem within IIAB 7.1's Known Issues as well.) |
|
Progress here would be very welcome! (But I'm moving this to IIAB 7.2's milestone as we have to release IIAB 7.1 in coming weeks.) |
|
Overtaken by events: roles/nextcloud is now remarkably solid, thanks to @floydianslips & others! |
Not ready to be merged into master yet. I need help with:
Tested on Ubuntu 19.10. Please test on more/other platforms. So far, the playbook should run to completion and you should get a working nextcloud setup at http://box.lan/nextcloud.