Skip to content

Commit

Permalink
docs: Removing swagger references
Browse files Browse the repository at this point in the history
  • Loading branch information
ViBiOh committed Oct 3, 2020
1 parent 7137211 commit 869cbed
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 12 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ ENV ZONEINFO zoneinfo.zip
EXPOSE 1080

ENV API_PORT 1080
ENV API_CSP "default-src 'self'; base-uri 'self'; script-src 'self' 'unsafe-inline' unpkg.com/swagger-ui-dist@3/; style-src 'self' 'unsafe-inline' unpkg.com/swagger-ui-dist@3/; img-src 'self' data:"
ENV API_SWAGGER_TITLE GoWeb

HEALTHCHECK --retries=5 CMD [ "/goweb", "-url", "http://localhost:1080/health" ]
ENTRYPOINT [ "/goweb" ]
Expand Down
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,4 @@ build:
## run: Locally run the application, e.g. node index.js, python -m myapp, go run myapp etc ...
.PHONY: run
run:
$(MAIN_RUNNER) \
-csp "default-src 'self'; base-uri 'self'; script-src 'self' 'unsafe-inline' unpkg.com/swagger-ui-dist@3/; style-src 'self' 'unsafe-inline' unpkg.com/swagger-ui-dist@3/; img-src 'self' data:"
$(MAIN_RUNNER)
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Usage of api:
-frameOptions string
[owasp] X-Frame-Options {API_FRAME_OPTIONS} (default "deny")
-graceDuration string
[http] Grace duration when SIGTERM received {API_GRACE_DURATION} (default "15s")
[http] Grace duration when SIGTERM received {API_GRACE_DURATION} (default "30s")
-hsts
[owasp] Indicate Strict Transport Security {API_HSTS} (default true)
-key string
Expand All @@ -71,10 +71,6 @@ Usage of api:
[http] Listen port {API_PORT} (default 1080)
-prometheusPath string
[prometheus] Path for exposing metrics {API_PROMETHEUS_PATH} (default "/metrics")
-swaggerTitle string
[swagger] API Title {API_SWAGGER_TITLE} (default "API")
-swaggerVersion string
[swagger] API Version {API_SWAGGER_VERSION} (default "1.0.0")
-url string
[alcotest] URL to check {API_URL}
-userAgent string
Expand Down
3 changes: 0 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ services:
traefik.http.routers.goweb-https.tls: "true"
traefik.http.routers.goweb-https.tls.certresolver: default
traefik.http.services.goweb-service.loadbalancer.server.port: "1080"
environment:
API_CSP: "default-src 'self'; base-uri 'self'; script-src 'self' 'unsafe-inline' unpkg.com/swagger-ui-dist@3/; style-src 'self' 'unsafe-inline' unpkg.com/swagger-ui-dist@3/; img-src 'self' data:"
API_SWAGGER_TITLE: "GoWeb"
restart: on-failure:5
read_only: true
cpu_shares: 128
Expand Down

0 comments on commit 869cbed

Please sign in to comment.