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
Red Hat Enterprise Linux 9
# Note that logs are not compressed unless "compress" is configured, # which can be done either here or globa…
# Note that logs are not compressed unless "compress" is configured,
# which can be done either here or globally in /etc/logrotate.conf.
/var/log/httpd/*log {
missin…
Apache HTTP Server
Red Hat Enterprise Linux 9
# This is a template for httpd instances. # See httpd@.service(8) for more information. [Unit] Description=T…
# This is a template for httpd instances. # See httpd@.service(8) for more information. [Unit] Description=The Apache HTTP Server After=network.target remote-fs.target …
Apache HTTP Server
Red Hat Enterprise Linux 9
# See httpd.socket(8) for more information on using the httpd service. [Unit] Description=Apache httpd Serve…
# See httpd.socket(8) for more information on using the httpd service. [Unit] Description=Apache httpd Server Socket Documentation=man:httpd.socket(8) [Socket] ListenS…
APT Configurations
Most requested defaults for APT
APT
Debian 11
[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.target network-online.target systemd-networkd.service Netwo…
APT
Debian 9
/var/log/apt/term.log { rotate 12 monthly compress missingok notifempty } /var/log/apt/history.log…
/var/log/apt/term.log {
rotate 12
monthly
compress
missingok
notifempty
}
/var/log/apt/history.log {
rotate 12
monthly
compress
missingok
notifempty…
APT
Debian 9
[Unit] Description=Daily apt download activities [Timer] OnCalendar=*-*-* 6,18:00 RandomizedDelaySec=12h Per…
[Unit] Description=Daily apt download activities [Timer] OnCalendar=*-*-* 6,18:00 RandomizedDelaySec=12h Persistent=true [Install] WantedBy=timers.target
MariaDB Configurations
Most requested defaults for MariaDB
MariaDB
Debian 9
# NOTE: This file is read only by the traditional SysV init script, not systemd. # MariaDB systemd does _not_…
# NOTE: This file is read only by the traditional SysV init script, not systemd. # MariaDB systemd does _not_ utilize mysqld_safe nor read this file. # # For similar beh…
MariaDB
Debian 9
# Automatically generated for Debian scripts. DO NOT TOUCH! [client] host = localhost user = root pas…
# Automatically generated for Debian scripts. DO NOT TOUCH! [client] host = localhost user = root password = socket = /var/run/mysqld/mysqld.sock [mysql_upgra…
MariaDB
Debian 9
#!/bin/bash # # This script is executed by "/etc/init.d/mysql" on every (re)start. # # Changes to this file w…
#!/bin/bash # # This script is executed by "/etc/init.d/mysql" on every (re)start. # # Changes to this file will be preserved when updating the Debian package. # # NOTE:…
MySQL Configurations
Most requested defaults for MySQL
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
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
Debian 9
# Copyright (c) 2014, 2021, Oracle and/or its affiliates. # # This program is free software; you can redistri…
# Copyright (c) 2014, 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…
NGINX Configurations
Most requested defaults for NGINX
NGINX
Debian 9
/var/log/nginx/*.log { daily missingok rotate 14 compress delaycompress notifempty create 0640 www-dat…
/var/log/nginx/*.log {
daily
missingok
rotate 14
compress
delaycompress
notifempty
create 0640 www-data adm
sharedscripts
prerotate
if [ -d /etc/logrotate.d/h…
NGINX
Debian 9
# Stop dance for nginx # ======================= # # ExecStop sends SIGSTOP (graceful stop) to the nginx proc…
# Stop dance for nginx # ======================= # # ExecStop sends SIGSTOP (graceful stop) to the nginx process. # If, after 5s (--retry QUIT/5) nginx is still running,…
NGINX
Debian 9
# This map is not a full windows-1251 <> utf8 map: it does not # contain Serbian and Macedonian letters. If y…
# This map is not a full windows-1251 <> utf8 map: it does not # contain Serbian and Macedonian letters. If you need a full map, # use contrib/unicode2nginx/win-utf map …
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
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAetYiDSxDS6ZZA1uUJlNVPiBfPvWKvBEUks3i4vcZaV root@5bb92bc4eb11
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAetYiDSxDS6ZZA1uUJlNVPiBfPvWKvBEUks3i4vcZaV root@5bb92bc4eb11
OpenSSH
Debian 9
-----BEGIN OPENSSH PRIVATE KEY----- b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW Qy…
-----BEGIN OPENSSH PRIVATE KEY----- b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW QyNTUxOQAAACAHrWIg0sQ0umWQNblCZTVT4gXz71irwRFJLN4uL3GWlQAAAJhA…
OpenSSH
Debian 9
ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEkC9GGlZf5uvHDtvCL2T5LWPUL3ldbQcXvIv…
ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEkC9GGlZf5uvHDtvCL2T5LWPUL3ldbQcXvIvJpsfD00rrnaQa/7K1KAzLH+xX9dK9xQqdF0PBcpM2TzIpzFQu0= root@5bb…
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
# # Postfix master process configuration file. For details on the format # of the file, see the master(5) ma…
# # Postfix master process configuration file. For details on the format # of the file, see the master(5) manual page (command: "man 5 master" or # on-line: http://www.…
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 …
Postfix
Debian 9
[Unit] Description=Postfix Mail Transport Agent (instance %i) Documentation=man:postfix(1) PartOf=postfix.ser…
[Unit] Description=Postfix Mail Transport Agent (instance %i) Documentation=man:postfix(1) PartOf=postfix.service Before=postfix.service ReloadPropagatedFrom=postfix.ser…
PostgreSQL Configurations
Most requested defaults for PostgreSQL
PostgreSQL
Debian 9
/var/log/postgresql/*.log { weekly rotate 10 copytruncate delaycompress co…
/var/log/postgresql/*.log {
weekly
rotate 10
copytruncate
delaycompress
compress
notifempty
missingok
su root roo…
PostgreSQL
Debian 9
# systemd service template for PostgreSQL clusters. The actual instances will # be called "postgresql@version…
# systemd service template for PostgreSQL clusters. The actual instances will # be called "postgresql@version-cluster", e.g. "postgresql@9.3-main". The # variable %i exp…
PostgreSQL
Debian 9
# systemd service for managing all PostgreSQL clusters on the system. This # service is actually a systemd ta…
# systemd service for managing all PostgreSQL clusters on the system. This # service is actually a systemd target, but we are using a service since # targets cannot be r…
Redis Configurations
Most requested defaults for Redis
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
Debian 9
[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=forking ExecStart=/usr/…
Redis
Alpine Linux 3.21
/var/log/redis/*.log { notifempty missingok }
/var/log/redis/*.log {
notifempty
missingok
}
Need a specific default?
Search across apps and distros to find the exact file you need.
Search all configs