---
title: Creating a server.cfg File for your Team Fortress 2 Server
description: Learn how to add a server.cfg file to your Team Fortress 2 server to configure and tweak many server settings.
source: "https://nodecraft.com/support/games/tf2/creating-a-server-cfg-file-for-your-team-fortress-2-server"
image: "https://dynamic-assets.nodecraft.com/signedurl/w7vokBAexMnVlnMZ1Q/image.jpg?modifications=W3sibmFtZSI6ImdhbWVfYmciLCJpbWFnZV91cmwiOiJodHRwczovL2Ntcy1hLm5vZGVjcmFmdC5jb20vZi8xMzM5MzIvMjAwMHg1NTAvNmIxOGI2OGVmYy90ZjItbGFuZGluZy1iYW5uZXItMS0yLTAucG5nL20vIn0seyJuYW1lIjoiZ2FtZV9sb2dvIiwiaW1hZ2VfdXJsIjoiaHR0cHM6Ly9jbXMtYS5ub2RlY3JhZnQuY29tL2YvMTMzOTMyLzM3NXgxNTAvNjlmMTUwZGNmNS9sb2dvLnBuZy9tLyJ9LHsibmFtZSI6ImN0YV90ZXh0IiwidGV4dCI6IkNyZWF0ZSB5b3VyIG93biBzZXJ2ZXIhIn0seyJuYW1lIjoidGV4dCIsInRleHQiOiJDcmVhdGluZyBhIHNlcnZlci5jZmcgRmlsZSBmb3IgeW91ciBUZWFtIEZvcnRyZXNzIDIgU2VydmVyIn1d&s=6f12f1e92cbb3144999ffab6bba623b53dc773cc8898d4dee395ede9b08b6d51"
published: "2019-06-07T18:09:56.296Z"
updated: "2024-09-05T15:01:00.000Z"
---

# Creating a server.cfg File for your Team Fortress 2 Server

Learn how to add a server.cfg file to your Team Fortress 2 server to configure and tweak many server settings.

The `server.cfg` file on a Team Fortress 2 server can be used to store custom settings you want to use on your server.

## Creating the File

This file does not exist on a freshly installed or deployed server, as it's not available by default from Steam. The Nodecraft Pro panel automatically creates this files once you have adjusted and submitted your Game Settings.

![Nodecraft Pro panel's Game Settings for Team Fortress 2](https://cms-a.nodecraft.com/f/133932/1388x815/bc01a21042/tf2-game-settings.PNG/m/1000x0/smart)The `server.cfg` can also be manually created in your Server Files within `/tf/cfg`. You can create the file with any simple text editor and upload it to the server, or you can use the "New File" button on the Server Files panel.

## Settings and Convars

Each setting included will be loaded before a new map loads. This assures security settings are set with every map change.

The best source of information on the settings that can be included inside the `server.cfg` file is the server itself. In your Server Console enter the command `cvarlist log cvarlist.txt` to generate a file containing all available setting Convars and commands. This will be within the `/tf` folder. We recommend using the panel's `CTRL F` search feature to locate desired settings.

![Example of Team Fortress 2's cvarlist command showing settings, convars, and commands for the dedicated server](https://cms-a.nodecraft.com/f/133932/1695x867/b7edb032ae/tf2-cvarlist-example.PNG/m/1000x0/smart)Inside the `server.cfg`, any line that starts with double slashes (`//` ), is a comment line. Nothing after the `//` will be read by the game, or acted on. This can be useful for leaving notes about why certain convars have been added.

## Move the File

Once you have finished modifying all of the settings you'd like, move the completed `server.cfg` file to the `/tf2/cfg` directory in your Server Files. It should automatically be read by the game on the next server startup
