Este sítio funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Iniciar sessão
bubblev
/
swagger-ui
Vigiar
4
Marcar como favorito
0
Derivar
0
Código
Questões
0
Pedidos de integração
0
Lançamentos
0
Wiki
Trabalho
Ver a proveniência
- added `nginx.conf` to provide greater flexibility of configuration (ie. listening port)
- reverted to port 8080 for the docker image
bubble
Roman Tarnavski
há 8 anos
ascendente
7a47fb8024
cometimento
595f604379
3 ficheiros alterados
com
27 adições
e
2 eliminações
Visualização em 2 colunas
Opções das diferenças
Mostrar estatísticas
Descarregar ficheiro patch
Descarregar ficheiro diff
+2
-1
Dockerfile
+1
-1
README.md
+24
-0
nginx.conf
+ 2
- 1
Dockerfile
Ver ficheiro
@@ -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
Ver ficheiro
@@ -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
Ver ficheiro
@@ -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;
}
}
}
Escrever
Pré-visualizar
Carregando…
Cancelar
Guardar