Handles PHP processing via PHP-FPM. It executes the Nextcloud core application files.
location /exapps/ proxy_pass http://IP_OF_HARP_CONTAINER:8780; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; harp nextcloud install
Create a new server block configuration file for your Nextcloud platform: sudo nano /etc/nginx/sites-available/nextcloud Use code with caution. Handles PHP processing via PHP-FPM
'trusted_proxies' => array('127.0.0.1'), 'overwriteprotocol' => 'https', 'memcache.local' => '\OC\Memcache\Redis', 'memcache.locking' => '\OC\Memcache\Redis', 'redis' => array( 'host' => '/var/run/redis/redis-server.sock', 'port' => 0, 'timeout' => 0.0, ), Use code with caution. proxy_set_header Host $host
location ~ /harp/ limit_req zone=music burst=5;
Extract the archive contents into your target web server directory: tar -xjvf latest.tar.bz2 sudo mv nextcloud /var/www/ Use code with caution. Configure File System Permissions