$ cat node_modules/react-scripts/config/webpackDevServer.config.js
...
// want to allow setting the allowedHosts manually for more complex setups
allowedHosts: disableFirewall ? 'all' : [allowedHost],
headers: {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': '*',
'Access-Control-Allow-Headers': '*',
},
allowedHosts: [
// Ваш список разрешенных хостов здесь
'localhost',
'127.0.0.1',
'IPADDR1'
],
...
$ cat settings.py
...
ALLOWED_HOSTS = ['127.0.0.1', 'localhost', 'IPADDR1', 'HOST1']
...
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'BASE',
'USER': 'USER',
'PASSWORD': 'PASSWORD',
'HOST': 'IPADDR1',
'PORT': '5432',
}
}
$ cat /etc/postgresql/14/main/pg_hba.conf
...
listen_addresses = 'localhost, 127.0.0.1, IPADDR1, IPADDR2, HOST1' # what IP address(es) to listen on;
...
$ sudo setfacl -m u:libvirt-qemu:rx /mnt/Space/
$ sudo mkdir -p /mnt/Space/libvirt/images
$ virsh pool-define-as --name default --type dir --target /mnt/Space/libvirt/images
error: Failed to define pool default
error: operation failed: pool 'default' already exists with uuid 7559d9a8-1117-4b88-93f3-d173acdd5610
$ virsh pool-start default
error: Failed to start pool default
error: Requested operation is not valid: storage pool 'default' is already active