Skip to content
Snippets Groups Projects
Commit afe55e76 authored by jan.bednarik's avatar jan.bednarik
Browse files

Nginx serve robots.txt

parent 07dfe416
No related branches found
No related tags found
2 merge requests!921Release,!920Nginx serve robots.txt
Pipeline #16602 passed
FROM nginx:1.18 FROM nginx:latest
EXPOSE 8080 EXPOSE 8080
ADD nginx.conf /etc/nginx/conf.d/majak.conf ADD nginx.conf /etc/nginx/conf.d/majak.conf
...@@ -18,6 +18,10 @@ server { ...@@ -18,6 +18,10 @@ server {
alias /var/opt/majak/media_files/; alias /var/opt/majak/media_files/;
} }
location = /robots.txt {
alias /var/opt/majak/robots.txt;
}
location / { location / {
proxy_pass http://majak/; proxy_pass http://majak/;
proxy_set_header Host $host; proxy_set_header Host $host;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment