1. Install nginx
2. Install minio
3. Install mc client
$ mc mb myminio/static
Bucket created successfully ‘myminio/static’.
| $em | |
| ->getConnection() | |
| ->getWrappedConnection() | |
| ->setAttribute(\PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, false); |
| <!-- add this to /var/ossec/etc/shared/agent.conf --> | |
| <localfile> | |
| <log_format>syslog</log_format> | |
| <location>/var/log/fail2ban.log</location> | |
| </localfile> |
| <?php | |
| if(defined('WP_CRON_CUSTOM_HTTP_BASIC_USERNAME') && defined('WP_CRON_CUSTOM_HTTP_BASIC_PASSWORD')) { | |
| function http_basic_cron_request($cron_request) { | |
| $headers = array('Authorization' => sprintf('Basic %s', base64_encode(WP_CRON_CUSTOM_HTTP_BASIC_USERNAME . ':' . WP_CRON_CUSTOM_HTTP_BASIC_PASSWORD))); | |
| $cron_request['args']['headers'] = isset($cron_request['args']['headers']) ? array_merge($cron_request['args']['headers'], $headers) : $headers; | |
| return $cron_request; | |
| } |
*This Dockerfile is intended for SvelteKit applications that use adapter-node. So, the Dockerfile below assumes that you have already installed and configured the adapter.
FROM node:18-alpine AS builder
WORKDIR /app
COPY package*.json .
RUN npm ci
COPY . .
RUN npm run build