From 55b0c0ccaa86ce32728cee00c06ee5b0a2992f7d Mon Sep 17 00:00:00 2001 From: Mary Date: Wed, 7 Sep 2022 09:45:52 +0200 Subject: [PATCH] Add missing robots.txt, pin version of node in Dockerfile and fix indentation of nginx.conf --- Dockerfile | 2 +- build/nginx.conf | 20 ++++++++++---------- public/robots.txt | 2 ++ 3 files changed, 13 insertions(+), 11 deletions(-) create mode 100644 public/robots.txt diff --git a/Dockerfile b/Dockerfile index 7410f80..d02b7e2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Stage build -FROM node:lts-alpine as build-stage +FROM node:16-alpine as build-stage WORKDIR /app COPY package*.json ./ RUN npm install diff --git a/build/nginx.conf b/build/nginx.conf index 7d45b6f..5c83a92 100644 --- a/build/nginx.conf +++ b/build/nginx.conf @@ -1,14 +1,14 @@ server { - listen 80 default_server; - listen [::]:80 default_server; + listen 80 default_server; + listen [::]:80 default_server; - location / { - root /usr/share/nginx/html; - try_files $uri $uri/ /index.html; - index index.html; - } + location / { + root /usr/share/nginx/html; + try_files $uri $uri/ /index.html; + index index.html; + } - location = /robots.txt { - root /usr/share/nginx/html; - } + location = /robots.txt { + root /usr/share/nginx/html; + } } diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..4cf885b --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,2 @@ +Sitemap: https://ryujinx.org/sitemap.xml +Host: https://ryujinx.org