Get the default configuration file snakeoil.conf for nginx, optimized for Ubuntu 16.04 LTS (Xenial Xerus). This example configuration ensures optimal compatibility and performance for nginx, making it easy to set up and adjust to meet your needs.
Find and download the configuration file here: /etc/nginx/snippets/snakeoil.conf.
For more configurations and setup guides, visit our related files section to further customize your system.
# Self signed certificates generated by the ssl-cert package
# Don't use them in a production server!
ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;
Download the raw file with wget or curl
wget -O snakeoil.conf.example https://exampleconfig.com/static/raw/nginx/ubuntu16.04/etc/nginx/snippets/snakeoil.conf
curl https://exampleconfig.com/static/raw/nginx/ubuntu16.04/etc/nginx/snippets/snakeoil.conf > snakeoil.conf.example
Other config files you might find useful