Most Requested Default Configs
The configs everyone needs. Ready to copy.
Apache HTTP Server Configurations
Most requested defaults for Apache HTTP Server
Apache HTTP Server
Ubuntu 24.04
# envvars - default environment variables for apache2ctl # this won't be correct after changing uid unset HO…
# envvars - default environment variables for apache2ctl
# this won't be correct after changing uid
unset HOME
# for supporting multiple apache2 instances
if [ "${APAC…
Apache HTTP Server
Red Hat Enterprise Linux 9
# # This is the main Apache HTTP server configuration file. It contains the # configuration directives that …
# # This is the main Apache HTTP server configuration file. It contains the # configuration directives that give the server its instructions. # See <URL:http://httpd.ap…
Apache HTTP Server
Ubuntu 24.04
<VirtualHost *:80> # The ServerName directive sets the request scheme, hostname and port that # the server …
<VirtualHost *:80> # The ServerName directive sets the request scheme, hostname and port that # the server uses to identify itself. This is used when creating # redir…
APT Configurations
Most requested defaults for APT
APT
Debian 9
[Unit] Description=Daily apt upgrade and clean activities After=apt-daily.timer [Timer] OnCalendar=*-*-* 6:0…
[Unit] Description=Daily apt upgrade and clean activities After=apt-daily.timer [Timer] OnCalendar=*-*-* 6:00 RandomizedDelaySec=60m Persistent=true [Install] WantedBy…
APT
Debian 9
# Since Docker users are looking for the smallest possible final images, the # following emerges as a very co…
# Since Docker users are looking for the smallest possible final images, the # following emerges as a very common pattern: # RUN apt-get update \ # && apt-get i…
APT
Debian 9
[Unit] Description=Daily apt download activities Documentation=man:apt(8) ConditionACPower=true After=network…
[Unit] Description=Daily apt download activities Documentation=man:apt(8) ConditionACPower=true After=network-online.target Wants=network-online.target [Service] Type=o…
MariaDB Configurations
Most requested defaults for MariaDB
MariaDB
Ubuntu 24.04
# # These groups are read by MariaDB server. # Use it for options that only the server (but not clients) shou…
# # These groups are read by MariaDB server. # Use it for options that only the server (but not clients) should see # this is read by the standalone daemon and embedded…
MariaDB
CentOS Stream 9
# For advice on how to change settings please see # http://dev.mysql.com/doc/refman/8.0/en/server-configurati…
# For advice on how to change settings please see # http://dev.mysql.com/doc/refman/8.0/en/server-configuration-defaults.html [mysqld] # # Remove leading # and set to t…
MariaDB
Ubuntu 24.04
#!/bin/bash # # This script is executed by both SysV init /etc/init.d/mariadb and # systemd mariadb.service o…
#!/bin/bash # # This script is executed by both SysV init /etc/init.d/mariadb and # systemd mariadb.service on every (re)start. # # Changes to this file will be preserve…
MySQL Configurations
Most requested defaults for MySQL
MySQL
Red Hat Enterprise Linux 9
# For advice on how to change settings please see # http://dev.mysql.com/doc/refman/8.4/en/server-configurati…
# For advice on how to change settings please see # http://dev.mysql.com/doc/refman/8.4/en/server-configuration-defaults.html [mysqld] # # Remove leading # and set to t…
MySQL
Debian 9
# Copyright (c) 2015, 2021, Oracle and/or its affiliates. # # This program is free software; you can redistri…
# Copyright (c) 2015, 2021, Oracle and/or its affiliates. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Genera…
MySQL
Ubuntu 24.04
# Copyright (c) 2014, 2025, Oracle and/or its affiliates. # # This program is free software; you can redistri…
# Copyright (c) 2014, 2025, Oracle and/or its affiliates. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Genera…
NGINX Configurations
Most requested defaults for NGINX
NGINX
Debian 9
## # You should look at the following URL's in order to grasp a solid understanding # of Nginx configuration …
## # You should look at the following URL's in order to grasp a solid understanding # of Nginx configuration files in order to fully unleash the power of Nginx. # https:…
NGINX
Red Hat Enterprise Linux 9
#user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_…
#user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid; ev…
NGINX
Debian 9
proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $…
proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Prot…
Odoo Configurations
Most requested defaults for Odoo
Odoo
Debian 9
[options] addons_path = /mnt/extra-addons data_dir = /var/lib/odoo ; admin_passwd = admin ; csv_internal_sep …
[options] addons_path = /mnt/extra-addons data_dir = /var/lib/odoo ; admin_passwd = admin ; csv_internal_sep = , ; db_maxconn = 64 ; db_name = False ; db_template = temp…
Odoo
Red Hat Enterprise Linux 9
[options] addons_path = /mnt/extra-addons data_dir = /var/lib/odoo ; admin_passwd = admin ; csv_internal_sep …
[options] addons_path = /mnt/extra-addons data_dir = /var/lib/odoo ; admin_passwd = admin ; csv_internal_sep = , ; db_maxconn = 64 ; db_name = False ; db_template = temp…
Odoo
CentOS Stream 9
[options] addons_path = /mnt/extra-addons data_dir = /var/lib/odoo ; admin_passwd = admin ; csv_internal_sep …
[options] addons_path = /mnt/extra-addons data_dir = /var/lib/odoo ; admin_passwd = admin ; csv_internal_sep = , ; db_maxconn = 64 ; db_name = False ; db_template = temp…
OpenSSH Configurations
Most requested defaults for OpenSSH
OpenSSH
Debian 9
# $OpenBSD: sshd_config,v 1.100 2016/08/15 12:32:04 naddy Exp $ # This is the sshd server system-wide config…
# $OpenBSD: sshd_config,v 1.100 2016/08/15 12:32:04 naddy Exp $ # This is the sshd server system-wide configuration file. See # sshd_config(5) for more information. #…
OpenSSH
Red Hat Enterprise Linux 9
# This system is following system-wide crypto policy. The changes to # crypto properties (Ciphers, MACs, ...)…
# This system is following system-wide crypto policy. The changes to # crypto properties (Ciphers, MACs, ...) will not have any effect in # this or following included fi…
OpenSSH
Debian 9
# This is the ssh client system-wide configuration file. See # ssh_config(5) for more information. This fi…
# This is the ssh client system-wide configuration file. See # ssh_config(5) for more information. This file provides defaults for # users, and the values can be chan…
OpenSSL Configurations
Most requested defaults for OpenSSL
OpenSSL
Debian 9
# # OpenSSL example configuration file. # This is mostly being used for generation of certificate requests. #…
# # OpenSSL example configuration file. # This is mostly being used for generation of certificate requests. # # This definition stops the following lines choking if HOM…
OpenSSL
Alpine Linux 3.21
# # OpenSSL example configuration file. # See doc/man5/config.pod for more info. # # This is mostly being use…
# # OpenSSL example configuration file. # See doc/man5/config.pod for more info. # # This is mostly being used for generation of certificate requests, # but may be used …
OpenSSL
Alpine Linux 3.21
# # OpenSSL example configuration file. # See doc/man5/config.pod for more info. # # This is mostly being use…
# # OpenSSL example configuration file. # See doc/man5/config.pod for more info. # # This is mostly being used for generation of certificate requests, # but may be used …
Postfix Configurations
Most requested defaults for Postfix
Postfix
Debian 9
# Global Postfix configuration file. This file lists only a subset # of all parameters. For the syntax, and f…
# Global Postfix configuration file. This file lists only a subset # of all parameters. For the syntax, and for a complete parameter # list, see the postconf(5) manual p…
Postfix
Debian 9
sqlite postfix-sqlite.so dict_sqlite_open
sqlite postfix-sqlite.so dict_sqlite_open
Postfix
Debian 9
# See /usr/share/postfix/main.cf.dist for a commented, more complete version # Debian specific: Specifying…
# See /usr/share/postfix/main.cf.dist for a commented, more complete version # Debian specific: Specifying a file name will cause the first # line of that file to be …
PostgreSQL Configurations
Most requested defaults for PostgreSQL
PostgreSQL
Ubuntu 24.04
# ----------------------------- # PostgreSQL configuration file # ----------------------------- # # This file…
# ----------------------------- # PostgreSQL configuration file # ----------------------------- # # This file consists of lines of the form: # # name = value # # (The …
PostgreSQL
Ubuntu 24.04
# PostgreSQL Client Authentication Configuration File # =================================================== #…
# PostgreSQL Client Authentication Configuration File # =================================================== # # Refer to the "Client Authentication" section in the Postg…
PostgreSQL
Ubuntu 24.04
# PostgreSQL User Name Maps # ========================= # # --------------- # Mapping Records # -------------…
# PostgreSQL User Name Maps # ========================= # # --------------- # Mapping Records # --------------- # # Refer to the PostgreSQL documentation, chapter "Clien…
Redis Configurations
Most requested defaults for Redis
Redis
Ubuntu 24.04
[Unit] Description=Advanced key-value store After=network.target Documentation=http://redis.io/documentation,…
[Unit] Description=Advanced key-value store After=network.target Documentation=http://redis.io/documentation, man:redis-server(1) [Service] Type=notify ExecStart=/usr/b…
Redis
Debian 9
/var/log/redis/redis-server*.log { weekly missingok rotate 12 compress …
/var/log/redis/redis-server*.log {
weekly
missingok
rotate 12
compress
notifempty
}
Redis
Ubuntu 24.04
# Templated service file for redis-server(1) # # Each instance of redis-server requires its own configuration…
# Templated service file for redis-server(1) # # Each instance of redis-server requires its own configuration file: # # $ cp /etc/redis/redis.conf /etc/redis/redis-myn…
Need a specific default?
Search across apps and distros to find the exact file you need.
Search all configs