first commit

This commit is contained in:
WinniePatGG
2026-05-03 18:35:00 +00:00
commit d4397263ee
9 changed files with 1854 additions and 0 deletions
+54
View File
@@ -0,0 +1,54 @@
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
location /gitea-feed {
proxy_pass https://git.winniepat.de/winnie.rss;
proxy_set_header Host git.winniepat.de;
proxy_ssl_server_name on;
add_header Access-Control-Allow-Origin "*" always;
add_header Access-Control-Allow-Methods "GET, OPTIONS" always;
add_header Access-Control-Allow-Headers "Content-Type" always;
if ($request_method = OPTIONS) {
return 204;
}
}
location /gitea-repo-feed/ {
rewrite ^/gitea-repo-feed/(.+)$ /$1.rss break;
proxy_pass https://git.winniepat.de;
proxy_set_header Host git.winniepat.de;
proxy_ssl_server_name on;
add_header Access-Control-Allow-Origin "*" always;
add_header Access-Control-Allow-Methods "GET, OPTIONS" always;
add_header Access-Control-Allow-Headers "Content-Type" always;
if ($request_method = OPTIONS) {
return 204;
}
}
location /gitea-api/ {
proxy_pass https://git.winniepat.de/api/v1/;
proxy_set_header Host git.winniepat.de;
proxy_ssl_server_name on;
add_header Access-Control-Allow-Origin "*" always;
add_header Access-Control-Allow-Methods "GET, OPTIONS" always;
add_header Access-Control-Allow-Headers "Content-Type" always;
if ($request_method = OPTIONS) {
return 204;
}
}
}