 |
|
| |
cutelystd4-qt6(1) |
FreeBSD General Commands Manual |
cutelystd4-qt6(1) |
cutelystd4-qt6 - Fast, developer friendly WSGI server for Cutelyst
applications.
cutelystd4-qt6 is a developer friendly WSGI server for
Cutelyst applications that can either be used as standalone HTTP server or
as a gateway between your Cutelyst application and another webserver like
Apache or nginx. It supports HTTP, HTTPS, HTTP/2 and FastCGI sockets.
- --chdir
directory
- Change to the specified directory before the application
loads.
- --chdir2
directory
- Change to the specified directory after the application has been
loaded.
- --static-map
mountpoint=path
- Map mountpoint to local path to serve static files. The
mountpoint will be removed from the request path and the rest will be
appended to the local path to find the file to serve. Can be used multiple
times.
If for example defining a static map
/assets=/path/to/static and then getting a request for
/assets/css/style.css, the Server will remove /assets from
the request path and appends the rest to the local path for that
mountpoint. In the end it will try to find the requested file
locally at /path/to/static/css/style.css.
- --static-map2
mountpoint=path
- Like static-map but completely appending the request path to the local
path. Can be used multiple times.
If for example defining a static map
/assets=/path/to/static and then getting a request for
/assets/css/style.css, the Server will append the complete
request path to the local path and will try to find the requested
file there. In this example the Server would search locally at
/path/to/static/assets/css/style.css for the requested file.
- --ini
file
- Load configuration from ini file. When used multiple times, content
will be merged and same keys in the sections will be overwritten by
content from later files.
- -j, --json
file
- Load configuration from JSON file. When used multiple times,
content will be merged and same keys in the sections will be overwritten
by content from later files.
- --touch-reload
file
- Reload the application if the specified file is modified/touched.
Requires that master process (--master) and lazy mode
(--lazy) are enabled. Can be used multiple times.
- --h1, --http-socket
<address>:port
- Bind to the specified TCP socket using HTTP protocol. To bind to all
interfaces, simply only provide the port. Can be used multiple
times to add multiple sockets.
- --upgrade-h2c
- Defines if an HTTP/1 connection set with --h1 can be upgraded to
H2C (HTTP 2 Clear Text).
- --hs1, --https-socket
<address>:port,certPath,keyPath<,algorithm>
- Bind to the specified TCP socket using HTTPS protocol. This expects a
comma separated list of options. address is optional, if omitted,
will bind to all interfaces. certPath is the full path to the TLS
certificate in PEM format. keyPath is the full path to the private
TLS key in PEM. The optional last part algorithm can be either
rsa or ec. If omitted, rsa will be used as defaut.
Can be used multiple times to add multiple sockets.
- --https-h2
- Defines if HTTPS socket set with --hs1 should use ALPN to negotiate
HTTP/2.
- --h2, --http2-socket
<address>:port
- Bind to the specified TCP socket using HTTP/2 Clear Text only protocol. To
bind to all interfaces, simply only provide the port. Can be used
multiple times to add multiple sockets.
- Set the HTTP2 header table size. Default value: 4096.
- --fastcgi-socket
address
- Bind to the specified UNIX/TCP socket using FastCGI protocol. Can be used
multiple times to add multiple sockets.
- --socket-access
options
- Set the LOCAL socket access, such as 'ugo' standing for User, Group, Other
access.
- --chown-socket
uid:gid
- Chown UNIX sockets.
- --reuse-port
- Enable SO_REUSEPORT flag on socket(7) (Linux 3.9+).
- -z, --socket-timeout
seconds
- Set internal sockets timeout in seconds. Default value: 4.
- -l, --listen
size
- Set the socket listen queue size. Default value: 100.
- --using-frontend-proxy
- Defines if a reverse proxy operates in front of this application server.
If enabled, parses the HTTP headers X-Forwarded-For, X-Forwarded-Host and
X-Forwarded-Proto and uses this info to update
Cutelyst::EngineRequest.
0 on success and 1 if something failed.
cutelystd4-qt6 -M -a /path/to/cutelystapp.so --h1 localhost:3000
--ini /path/to/appconfig.ini
cutelystd4-qt6 -M -a /path/to/cutelystapp.so --hs1
:3000,/path/to/cert.pem,/path/to/rsakey.pem --https-h2
cutelystd4-qt6 -M -a /path/to/cutelystapp.so --fastcgi-socket
/run/cutelystapp.sock --chown-socket myuser:www --socket-access ug --uid
myuser
cutelystd4-qt6 -M -a /path/to/cutelystapp.so --fastcgi-socket
/run/cutelystapp.sock --pidfile /run/cutelystapp.pid
cutelystd4-qt6 --stop /run/cutelystapp.pid
Visit the GSP FreeBSD Man Page Interface. Output converted with ManDoc.
|