Пожалуйста, включите JavaScript.
Главная
Обзор
Помощь
Вход
bubblev
/
swagger-ui
Следить
4
В избранное
0
Форкнуть
0
Код
Задачи
0
Pull Request'ы
0
Релизы
0
Вики
Активность
Просмотр исходного кода
- added `nginx.conf` to provide greater flexibility of configuration (ie. listening port)
- reverted to port 8080 for the docker image
bubble
Roman Tarnavski
8 лет назад
Родитель
7a47fb8024
Сommit
595f604379
3 измененных файлов
:
27 добавлений
и
2 удалений
Разделённый вид
Опции Diff
Показать статистику
Скачать Patch файл
Скачать Diff файл
+2
-1
Dockerfile
+1
-1
README.md
+24
-0
nginx.conf
+ 2
- 1
Dockerfile
Просмотреть файл
@@ -4,8 +4,9 @@ MAINTAINER Roman Tarnavski
RUN apk add --update nginx
COPY nginx.conf /etc/nginx/
ADD ./dist/ /usr/share/nginx/html
EXPOSE 80
EXPOSE 80
80
CMD nginx -g 'daemon off;'
+ 1
- 1
README.md
Просмотреть файл
@@ -55,7 +55,7 @@ To build swagger-ui using a docker container:
```
docker build -t swagger-ui-builder .
docker run -p 80:80 swagger-ui-builder
docker run -p 80:80
80
swagger-ui-builder
```
This will start Swagger UI at `http://localhost`.
+ 24
- 0
nginx.conf
Просмотреть файл
@@ -0,0 +1,24 @@
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 8080;
server_name localhost;
location / {
root html;
index index.html index.htm;
}
}
}
Редактирование
Предпросмотр
Загрузка…
Отмена
Сохранить