Skip to content

Commit f735e4d

Browse files
authored
adapt ports (#26)
1 parent 6e6a6d9 commit f735e4d

File tree

5 files changed

+9
-14
lines changed

5 files changed

+9
-14
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ FROM openjdk:8
99

1010
ARG DOCKERIZE_VERSION=v0.6.1
1111

12-
ENV API_PORT 8080
12+
ENV API_PORT 1977
1313
ENV JDBC_DATABASE_URL localhost
1414
ENV JDBC_DATABASE_USERNAME postgres
1515
ENV JDBC_DATABASE_PASSWORD postgres

docs/dev/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ During development default users are
5757
## Main API Endpoints
5858
API-Root: /
5959

60-
Swagger-UI: http://localhost:8080/swagger-ui
60+
Swagger-UI: http://localhost:1977/swagger-ui
6161

62-
HAL - Browser: On "/" -> redirects to http://localhost:8080/explorer/index.html#uri=/
62+
HAL - Browser: On "/" -> redirects to http://localhost:1977/explorer/index.html#uri=/
6363

6464

6565
## License

src/main/resources/application.properties

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
server.port=8080
2-
1+
server.port=1977
32
spring.datasource.url=jdbc:postgresql://localhost:5432/postgres
43
spring.datasource.username=postgres
54
spring.datasource.password=postgres
@@ -14,11 +13,8 @@ springdoc.swagger-ui.path=/swagger-ui
1413
springdoc.swagger-ui.config-url=/patternpedia/v3/api-docs/swagger-config
1514
springdoc.swagger-ui.operationsSorter=alpha
1615
springdoc.default-produces-media-type=application/hal+json
17-
18-
1916
security.oauth2.resource.jwk.key-set-uri=http://localhost:8081/.well-known/jwks.json
2017
#okta.oauth2.issuer=https://dev-918271.okta.com/oauth2/default
2118
#okta.oauth2.clientId=0oa1eflyl1wZDVLLg357
22-
2319
# Embedded Tomcat
2420
server.servlet.contextPath=/patternpedia

src/main/resources/applicationYML.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
server:
2-
port: 8080
2+
port: 1977
33

44
spring:
55
datasource:
@@ -24,8 +24,8 @@ spring:
2424
security:
2525
oauth2:
2626
resource:
27-
# user-info-uri: http://localhost:8081/userinfo
28-
# token-info-uri: http://localhost:8081/oauth/check_token
27+
# user-info-uri: http://localhost:8081/userinfo
28+
# token-info-uri: http://localhost:8081/oauth/check_token
2929
jwk:
3030
key-set-uri: http://localhost:8081/.well-known/jwks.json
3131

src/test/resources/application.properties

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
server.port=8080
1+
server.port=1977
22
spring.profiles.active=default,test
33
spring.datasource.initialization-mode=always
44
spring.datasource.driver-class-name=org.postgresql.Driver
@@ -15,6 +15,5 @@ spring.jpa.properties.hibernate.show_sql=true
1515
spring.jpa.properties.hibernate.format_sql=true
1616
spring.jpa.properties.hibernate.use_sql_comments=true
1717
spring.jpa.properties.hibernate.enable_lazy_load_no_trans=true
18-
1918
spring.security.oauth2.resourceserver.jwt.issuer-uri=http://localhost:8081/auth/realms/patternpedia
20-
spring.security.oauth2.resourceserver.jwt-set-uri=http://localhost:8081/auth/realms/patternpedia/protocol/openid-connect/cer
19+
spring.security.oauth2.resourceserver.jwt-set-uri=http://localhost:8081/auth/realms/patternpedia/protocol/openid-connect/cer

0 commit comments

Comments
 (0)