Commit a245e6fb authored by Finn Herzfeld's avatar Finn Herzfeld 🌵

Configure the whole nginx server

parent 9ed555f3
Pipeline #1591 passed with stages
in 3 minutes and 52 seconds
......@@ -6,5 +6,5 @@ RUN jekyll build -tV && cp -r _site /tmp/_site
FROM nginx
EXPOSE 80
COPY nginx/redirects.conf /etc/nginx/conf.d/
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=0 /tmp/_site /usr/share/nginx/html
server {
listen 80;
server_name finn.io;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
location /.well-known/webfinger {
return 302 https://social.seattle.wa.us/.well-known/webfinger?resource=acct:finn@social.seattle.wa.us;
}
}
location /.well-known/webfinger {
return 302 https://social.seattle.wa.us/.well-known/webfinger?resource=acct:finn@social.seattle.wa.us;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment