-server {
- listen 80;
- listen [::]:80;
- server_name peertube.example.com;
-
- access_log /var/log/nginx/peertube.example.com.access.log;
- error_log /var/log/nginx/peertube.example.com.error.log;
-
- location /.well-known/acme-challenge/ {
- default_type "text/plain";
- root /var/www/certbot;
- }
- location / { return 301 https://$host$request_uri; }
-}
+# Uncomment in production to redirect HTTP to HTTPS. Leave commented for docker-compose.
+#server {
+# listen 80;
+# listen [::]:80;
+# server_name ${WEBSERVER_HOST};
+#
+# location /.well-known/acme-challenge/ {
+# default_type "text/plain";
+# root /var/www/certbot;
+# }
+# location / { return 301 https://$host$request_uri; }
+#}