mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-23 00:56:33 +03:00
12 lines
401 B
Bash
12 lines
401 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
set -e
|
||
|
|
||
|
sed -i -e "s|%PAGE_TITLE%|$PAGE_TITLE|g" /usr/share/nginx/html/index.html
|
||
|
sed -i -e "s|%PAGE_FAVICON%|$PAGE_FAVICON|g" /usr/share/nginx/html/index.html
|
||
|
sed -i -e "s|%SPEC_URL%|$SPEC_URL|g" /usr/share/nginx/html/index.html
|
||
|
sed -i -e "s|%REDOC_OPTIONS%|${REDOC_OPTIONS}|g" /usr/share/nginx/html/index.html
|
||
|
sed -i -e "s|80|${PORT}|g" /etc/nginx/nginx.conf
|
||
|
|
||
|
exec nginx -g 'daemon off;'
|