gitea2rss/config/nginx-example.conf

26 lines
826 B
Plaintext

# RSS feeds will be available at <https://rss.example.com/?repo=user/project>.
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name rss.example.com;
#access_log /var/log/nginx/rss.access_log main;
error_log /var/log/nginx/rss.error_log warn;
ssl_certificate /var/lib/dehydrated/certs/rss.example.com/fullchain.pem;
ssl_certificate_key /var/lib/dehydrated/certs/rss.example.com/privkey.pem;
# Tell clients to cache for 1 hour.
expires 1h;
location / {
include /etc/nginx/fastcgi_params;
# You may need to change fastcgi_pass.
fastcgi_pass unix:/var/run/cgi-fcgiwrap.socket-1;
fastcgi_param SCRIPT_FILENAME /usr/bin/gitea2rss;
# Base URL of your Gitea instance.
fastcgi_param GITEA2RSS_BASEURL "https://git.example.com";
}
}