Configure Strict Transport Security

Having issues with your DietPi installation, or, found a bug? Post it here.
User avatar
MichaIng
Site Admin
Posts: 2294
Joined: Sat Nov 18, 2017 6:21 pm

Re: Configure Strict Transport Security

Post by MichaIng »

Did you manually move your data directory?
User avatar
ludji
Posts: 15
Joined: Wed Feb 07, 2018 1:22 pm
Location: France

Re: Configure Strict Transport Security

Post by ludji »

MichaIng wrote:Did you manually move your data directory?
no but I write and everything is back in the order by following the links of your sites https://www.novaspirit.com/2018/01/19/r ... h-diet-pi/
:?
$ mkdir /datastore
$ chown www-data:www-data /datastore
$ chmod 0770 /datastore
mysql -u root -pdietpi
create database nextcloud;
rm /var/www/nextdcloud/config/config.php
User avatar
MichaIng
Site Admin
Posts: 2294
Joined: Sat Nov 18, 2017 6:21 pm

Re: Configure Strict Transport Security

Post by MichaIng »

Hmm what you did, should have been done automatically by Nextcloud installation script actually. But okay if it now works for you. Note that you can adjust the data directory prior to automated installation by edit in /DietPi/dietpi.txt. Moving it afterwards is not supported and can cause errors, if not some manual database adjustments are done also.
User avatar
ludji
Posts: 15
Joined: Wed Feb 07, 2018 1:22 pm
Location: France

Re: Configure Strict Transport Security

Post by ludji »

it's all right

there's just the cache memory to solve.

Image

then I will install samba it won't cause any problems afterwards
User avatar
MichaIng
Site Admin
Posts: 2294
Joined: Sat Nov 18, 2017 6:21 pm

Re: Configure Strict Transport Security

Post by MichaIng »

Samba and Nextcloud should not interact, but do not place Nextcloud data into Samba folder, that will not work due to permission issues.

To apply memory caching and some other enhancements to Nextcloud, run our installation script on top of your existing instence:
dietpi-software reinstall 114
It will not overwrite your current installation (if placed within /var/www/nextcloud) nor database (if named nextcloud), but will apply memory caching via APCu, Redis for transactional file locking and some other enhancements to your configuration.
User avatar
ludji
Posts: 15
Joined: Wed Feb 07, 2018 1:22 pm
Location: France

Re: Configure Strict Transport Security

Post by ludji »

MichaIng wrote:Samba and Nextcloud should not interact, but do not place Nextcloud data into Samba folder, that will not work due to permission issues.

To apply memory caching and some other enhancements to Nextcloud, run our installation script on top of your existing instence:
dietpi-software reinstall 114
It will not overwrite your current installation (if placed within /var/www/nextcloud) nor database (if named nextcloud), but will apply memory caching via APCu, Redis for transactional file locking and some other enhancements to your configuration.
I reinstall over it like this if or by your software because it already checked and I can't reinstall it?
I must have misunderstood

Image

Image
User avatar
MichaIng
Site Admin
Posts: 2294
Joined: Sat Nov 18, 2017 6:21 pm

Re: Configure Strict Transport Security

Post by MichaIng »

Jep typing the following into your terminal is the right way:

Code: Select all

dietpi-software reinstall 114
Reinstalling via dietpi-software gui is not possible, that's true. The command above is more a developer tool so far, to allow us applying configuration changes to already installed software.
We did not (yet) allow this within gui for end users, as it might delete existing configs, in case even data, of software installations. But in case of ownCloud/Nextcloud it preserves existing data and manual config changes, just injecting certain enhancements to cloud and PHP.
User avatar
ludji
Posts: 15
Joined: Wed Feb 07, 2018 1:22 pm
Location: France

Re: Configure Strict Transport Security

Post by ludji »

Okay, thank you
I would like to change my external ip by a web address through this site https://www.duckdns.org/index.jsp.
Is it possible and how to modify it while I'm in https? :?:

right now I have my ip https:// 78. ***. **.***/nextcloud
User avatar
MichaIng
Site Admin
Posts: 2294
Joined: Sat Nov 18, 2017 6:21 pm

Re: Configure Strict Transport Security

Post by MichaIng »

So you have a dynamic (~daily chaning) IP address right now? Yes a dyndns + domain provider makes sense then. https://www.noip.com/ is an alternative for this, implemented in DietPi. You need to change some config line in webserver and Nextcloud afterwards, but you can already set it up and try general access via the new external IP/domain.

I will reply later with details, am at work right now ;).
User avatar
ludji
Posts: 15
Joined: Wed Feb 07, 2018 1:22 pm
Location: France

Re: Configure Strict Transport Security

Post by ludji »

MichaIng wrote:So you have a dynamic (~daily chaning) IP address right now? Yes a dyndns + domain provider makes sense then. https://www.noip.com/ is an alternative for this, implemented in DietPi. You need to change some config line in webserver and Nextcloud afterwards, but you can already set it up and try general access via the new external IP/domain.

I will reply later with details, am at work right now ;).
my ip address is fixed by my provider it is not dynamic
I started by creating a domaine

Image
Post Reply