Repository navigation
Configurations
Gabriel Mourão edited this page Jun 13, 2019
·
2 revisions
FastWork has a lot of configurations options, but you can run that to only with one line of configuration.
Apache or NGINX:
You only needs to point a vhost to public/index.php, and set Apache or set a configuration for NGINX pointing to public/index.php.
You need to enable .htaccess
Swoole
To run using Swoole from basic configuarions, you need to configure on file config/server.yaml:
swoole:
host: 127.0.0.1
port: 8103
worker:
dispatch_mode: 3
worker_num: 1
task_worker_num: 4
task_ipc_mode: 3
message_queue_key: null #0x70001001
Advanced Configuration to Apache or NGNX must be configured on their respectives configs files.
Advanced configuration to Swoole is managed by FastWork, and all of then are defined in config/server.yaml:
Set certificate file in configuration:
config:
ssl_cert_file: '/etc/ssl/certs/swoole-selfsigned.crt'
ssl_key_file: '/etc/ssl/private/swoole-selfsigned.key'
Extra SSL configs:
ssl_ciphers: null
ssl_method: null
open_http2_protocol: true