Guangning Yu's Blog
Home
Code
Data
Setup
Industry
MachineLearning
Archive
Setup Nextcloud on Ubuntu
2019-09-09 23:06:06
- Install Nextcloud ``` # Install Nextcloud stack sudo snap install nextcloud # Create administrator account sudo nextcloud.manual-install <admin_username> <admin_password> # Configure trusted domains (only localhost by default) sudo nextcloud.occ config:system:get trusted_domains sudo nextcloud.occ config:system:set trusted_domains 1 --value=<dns-domain> # Set 512M as PHP memory limit sudo snap get nextcloud php.memory-limit # Should be 512M sudo snap set nextcloud php.memory-limit=512M # Set background jobs interval (e.g. checking for new emails, update RSS feeds, ...) sudo snap set nextcloud nextcloud.cron-interval=10m # Default: 15m ``` - Set reverse proxy ``` sudo snap set nextcloud ports.http=81 ports.https=444 ``` Reference: [Nextcloud on AWS](https://medium.com/@n.moretto/nextcloud-on-aws-ad244739c586) [Putting the snap behind a reverse proxy](https://github.com/nextcloud/nextcloud-snap/wiki/Putting-the-snap-behind-a-reverse-proxy)
Previous:
Mount S3 bucket on EC2 Linux Instance
Next:
Kubeless Basics