When mount is returning:
STDERR: mount: block device /srv/database-data/postgres is write-protected, mounting read-only
mount: cannot mount block device /srv/database-data/postgres read-only
and dmesg shows:
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| # our server config for CORS as optimized as we can, supporting multiple domains, add_more_header and trying to avoid ifs as much as possible | |
| # by Jose Luis Moya (alsur.es) | |
| # sources include: | |
| # https://gist.github.com/alexjs/4165271 | |
| # @todo need to confirm if more_set_headers 'Access-Control-Allow-Origin: $http_origin'; being http_origin blank would unset or blank | |
| # in this case we would rather use https://enable-cors.org/server_nginx.html method | |
| # map aceptable domains, var will be assigned if it coincides only | |
| # map $http_origin $allow_origin { | |
| # ~^https?://(.*\.)?my-domain.com(:\d+)?$ $http_origin; |
| #!/usr/bin/perl | |
| ############################################################################### | |
| # Copyright 2006-2015, Way to the Web Limited | |
| # URL: http://www.configserver.com | |
| # Email: [email protected] | |
| ############################################################################### | |
| sub custom_line { | |
| my $line = shift; | |
| my $lgfile = shift; |