mirror of
https://github.com/Redocly/redoc.git
synced 2025-11-08 03:37:40 +03:00
Co-authored-by: Roman Hotsiy <gotsijroman@gmail.com> Co-authored-by: Alex Varchuk <olexandr.varchuk@gmail.com> Co-authored-by: Oprysk Vyacheslav <vyacheslav@redocly.com> Co-authored-by: Ivan Kropyvnytskyi <130547411+ivankropyvnytskyi@users.noreply.github.com> Co-authored-by: Yevhen Pylyp <yevhen.pylyp@redocly.com> Co-authored-by: Vladyslav Makarenko <vladyslav.makarenko@redocly.com> Co-authored-by: Yevhenii Medviediev <yevhenii.medviediev@redocly.com> Co-authored-by: Oleksii Horbachevskyi <oleksii.horbachevskyi@redocly.com> Co-authored-by: volodymyr-rutskyi <rutskyi.v@gmail.com> Co-authored-by: Adam Altman <adam@redoc.ly> Co-authored-by: Andrew Tatomyr <andrew.tatomyr@redocly.com> Co-authored-by: Anastasiia Derymarko <anastasiia@redocly.com> Co-authored-by: Roman Marshevskyy <roman.marshevskyy@redoc.ly> Co-authored-by: Lorna Mitchell <lorna.mitchell@redocly.com> Co-authored-by: Taylor Krusen <taylor.krusen@redocly.com>
27 lines
540 B
Plaintext
27 lines
540 B
Plaintext
server {
|
|
listen ${PORT};
|
|
server_name ${HOST};
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
location / {
|
|
include /etc/nginx/handle_options.conf;
|
|
return 404;
|
|
}
|
|
|
|
location = /${BASE_PATH} {
|
|
include /etc/nginx/handle_options.conf;
|
|
try_files /index.html =404;
|
|
}
|
|
|
|
location /${BASE_PATH}/ {
|
|
include /etc/nginx/handle_options.conf;
|
|
try_files /index.html =404;
|
|
}
|
|
|
|
location ~* ^/${BASE_PATH}/(.+\.[^/]+)$ {
|
|
include /etc/nginx/handle_options.conf;
|
|
alias /usr/share/nginx/html/;
|
|
try_files /$1 =404;
|
|
}
|
|
} |