diff --git a/changelog.d/7890.misc b/changelog.d/7890.misc
new file mode 100644
index 0000000000000000000000000000000000000000..8c127084bc7e42e070643d794e693c1d80714501
--- /dev/null
+++ b/changelog.d/7890.misc
@@ -0,0 +1 @@
+Fix typo in generated config file. Contributed by @ThiefMaster.
diff --git a/docs/sample_config.yaml b/docs/sample_config.yaml
index 2e001fb67424a0869e7fe0c513e355936fa078ac..3227294e0b27cc483dd235fc7f3f34470cf767d3 100644
--- a/docs/sample_config.yaml
+++ b/docs/sample_config.yaml
@@ -148,7 +148,7 @@ pid_file: DATADIR/homeserver.pid
 #       names: a list of names of HTTP resources. See below for a list of
 #           valid resource names.
 #
-#       compress: set to true to enable HTTP comression for this resource.
+#       compress: set to true to enable HTTP compression for this resource.
 #
 #   additional_resources: Only valid for an 'http' listener. A map of
 #        additional endpoints which should be loaded via dynamic modules.
diff --git a/synapse/config/server.py b/synapse/config/server.py
index 3586a7d491845f37584eb93a1b290b1556497030..3747a01ca749bc514d06cdb2aa49a81e16ad96f4 100644
--- a/synapse/config/server.py
+++ b/synapse/config/server.py
@@ -739,7 +739,7 @@ class ServerConfig(Config):
         #       names: a list of names of HTTP resources. See below for a list of
         #           valid resource names.
         #
-        #       compress: set to true to enable HTTP comression for this resource.
+        #       compress: set to true to enable HTTP compression for this resource.
         #
         #   additional_resources: Only valid for an 'http' listener. A map of
         #        additional endpoints which should be loaded via dynamic modules.