Skip to content

Commit

Permalink
Revert to http
Browse files Browse the repository at this point in the history
  • Loading branch information
Lerbert committed Sep 22, 2021
1 parent fca1f4d commit 6684ddf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Test web service
run: |
sleep 3
curl -k https://localhost/v1/sensors
curl http://localhost/v1/sensors
- name: Stop containers
if: always()
run: docker-compose down
5 changes: 4 additions & 1 deletion WebService/Sources/Demo/Demo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ import ArgumentParser

@main
struct DemoWebService: WebService {
@Option(help: "The port the web service is offered at")
var port: Int = 80

var configuration: Configuration {
HTTP2Configuration(cert: "/buoy/cert.pem", keyPath: "/buoy/key.pem")
HTTPConfiguration(port: port)
REST {
OpenAPI()
}
Expand Down
2 changes: 1 addition & 1 deletion docker-compose-development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
dockerfile: ./WebService/Dockerfile
# Expose port 8080 of container on port 443 of host
ports:
- "443:8080"
- "80:80"
# Mount directory for config and sensor data
volumes:
- ../buoy:/buoy
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
image: "ghcr.io/fa21-collaborative-drone-interactions/buoywebservice:latest"
# Expose port 8080 of container on port 443 of host
ports:
- "443:8080"
- "80:80"
# Mount directory for config and sensor data
volumes:
- ../buoy:/buoy

0 comments on commit 6684ddf

Please sign in to comment.