2019-04-17 07:29:36 +02:00
|
|
|
# RSS feeds will be available at <https://rss.example.com/?repo=user/project>.
|
2019-04-17 06:34:48 +02:00
|
|
|
|
|
|
|
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;
|
|
|
|
|
2019-08-09 21:07:10 +02:00
|
|
|
# Tell clients to cache for 1 hour.
|
2019-04-17 06:34:48 +02:00
|
|
|
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";
|
|
|
|
}
|
|
|
|
}
|