Add missing robots.txt, pin version of node in Dockerfile and fix indentation of nginx.conf

This commit is contained in:
Mary 2022-09-07 09:45:52 +02:00
parent 70d6df62bd
commit 55b0c0ccaa
3 changed files with 13 additions and 11 deletions

View File

@ -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

View File

@ -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;
}
}

2
public/robots.txt Normal file
View File

@ -0,0 +1,2 @@
Sitemap: https://ryujinx.org/sitemap.xml
Host: https://ryujinx.org