Comment on page
Nginx configuration
The default.conf file Artifakt provides makes calls to different other files to allow custom configurations to be applied. These files should be stored in your repository in the .artifakt/nginx folder. If detected, these files will be copied over to /conf/nginxfpm on the containers.
File | Description |
---|---|
custom_global.conf | Integrated at the start of the nginx.conf file |
custom_media.conf | Integrated in the “location /media/” block |
custom_server_location.conf | Integrated in the "location ~ ^/(opcache|index|get|static|errors/report|errors/404|errors/503|health_check).php$” block |
custom_server.conf | Integrated at the end of the http block at the end of the nginx.conf file |
custom_upstream.conf | Integrated in the fastcgi_backend block in nginx config |
map_custom.txt | Integrated to the custom_http.conf of the multi-store |
*.map | All files with the .map extension are copied over to /conf/nginxfpm in the container to be shared with the nginx container (mounted on /etc/nginx/conf.d).
Example: you can add a test.map file to your repository and call test.map in your map_custom.txt file |
Last modified 1yr ago