add: docker folder for image build
All checks were successful
Deploy / Deploy (push) Successful in 6s
All checks were successful
Deploy / Deploy (push) Successful in 6s
This commit is contained in:
26
docker/nginx.conf
Normal file
26
docker/nginx.conf
Normal file
@@ -0,0 +1,26 @@
|
||||
map $http_accept_language $lang {
|
||||
default en;
|
||||
~fr fr;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
# Redirect users to their language home page
|
||||
rewrite ^/$ /$lang/ redirect;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
# Custom 404 page
|
||||
error_page 404 /$lang/404.html;
|
||||
location = /$lang/404.html {
|
||||
internal;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user