AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Nextcloud owncloud3/23/2023 Now the image previews will be generated with a size of 500x500px or smaller. Therefore, add the following settings to config.php. It is impossible for a preview file to be 1MB per file. This makes it meaningless to specify S3 as the storage area, and the display speed is slow. Let's save the file in it and make sure the file is saved in AWS.Ī preview file of the image will be generated, but the default is to generate an almost full size preview. Secret key: (Alphanumeric symbols of about 40 digits)Ĭlick on the check mark and when the green mark appears, the connection is complete.Īn AmazonS3 folder will be created in the dashboard (top page). Region:ap-northeast-1 (For the Tokyo region)Īccess key: (About 20 alphanumeric characters) So far, the initial configuration of NextCloud is complete, and AWS S3 and AWS IAM are ready.Įnable External storage in nextCloud Add Apps. Under "Directly attach an existing policy," select the S3NextCloudAccess that you just created.Īt the end, the access key and secret key will be printed out, so you can either save them or download the CSV. The user name should be S3JpExampleNextcloudAccess.Ĭheck "Programmatic access" for the type of access. The policy name was set to S3NextCloudAccess. In IAM (Identity and Access Management), create a user to access the bucket we have created in S3. The bucket name is assumed to have been created in jp.example.nextcloud. Leave everything else as it is by default. Choose a name for the bucket and select a region. PHP Configuration > Additional Configuration Directives is rewritten as follows.Ĭreate a new bucket in S3. It turns out that the opcache.enable=1 in PHP Configuration > Additional Configuration Directives is redundant. Zend OPcache can't be temporary enabled (it may be only disabled till the end of request) at Unknown#0 When I checked the nextCloud log, I discovered that the following message was recorded every 30 seconds. Therefore, we decided to use it as is this time. More information can be found in the documentation.Īs described here, this cannot be set from Plesk, but needs to be set manually. If possible, please configure memcache to improve performance. For better performance, we recommend the following settings in php.ini:Īdd the following to PHP Configuration > Additional Configuration Directives. For enhanced security, it is recommended to enable HSTS, which is described in Security Tips.Īdd the following to Apache and nginx Configuration > nginx Additional DirectivesĪdd_header Strict-Transport-Security "max-age=15552000" always The Strict-Transport-Security HTTP header is not set to a minimum of 15552000 seconds. Further information can be found in the documentation. dev/urandom is not readable by PHP which is highly discouraged for security reasons. Once you have logged into NextCloud, open Settings. It is recommended to create a separate directory for data.ĭecide on a user name and password and enter them.Įnter the data directory and DB information in the advanced settings. This time, I renamed the nextcloud directory name to nc. zip format is convenient if you want to upload and uncompress from Plesk's file manager.ĭecompress to the document root, where each file will be extracted in the directory named nextcloud. Then, connect the amazonS3 storage service.įPM application + Apache is easier to set up than FPM application + nginx, so we will do it here.Ĭonfigure Lets Encrypt settings to set a permanent 301 redirect from HTTP to HTTPS.
0 Comments
Read More
Leave a Reply. |