Skip to content

Commit

Permalink
website
Browse files Browse the repository at this point in the history
  • Loading branch information
MichiBaum committed Feb 19, 2024
1 parent e1e67ba commit 80aa03e
Show file tree
Hide file tree
Showing 47 changed files with 13,550 additions and 11 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21

- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '21'

- name: Set up node
uses: actions/setup-node@v4
with:
node-version: 20

- name: Angular build
run: npm run --prefix website build-production

- name: Generate Javadoc
run: mvn javadoc:aggregate

Expand Down
23 changes: 23 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,29 @@ services:
cpus: '0.20'
memory: 250M

website-service:
image: 70131370/website-service
env_file:
- .env
- .env.override
restart: always
depends_on:
- registry-service
environment:
spring_profiles_active: ${SPRING_ACTIVE_PROFILES}
expose:
- "80"
networks:
- microservice-network
deploy:
resources:
limits:
cpus: '0.50'
memory: 500M
reservations:
cpus: '0.20'
memory: 250M

# Matomo
# https://medium.com/@davquar/matomo-lets-install-it-with-docker-512211705c76
# https://github.com/matomo-org/docker
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ class AuthorizationPreFilter() : GatewayFilter {
}

override fun filter(exchange: ServerWebExchange?, chain: GatewayFilterChain?): Mono<Void> {
// ServerWebExchangeUtils.
exchange?.let {
permissions.get(0).toPermissionString()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,33 +16,33 @@ class RoutesConfiguration {
return builder.routes {
route {
host("admin.michibaum.ch")
// filters { AuthorizationPreFilter(Permissions.Admin_Service.CAN_SEND_REQUEST) }
filters { AuthorizationPreFilter(Permissions.Admin_Service.CAN_SEND_REQUEST) }
uri("lb://admin-service")
}
route {
host("authentication.michibaum.ch")
// filters {}
filters {}
uri("lb://authentication-service")
}
route {
host("javadoc.michibaum.ch")
// filters { AuthorizationPreFilter(Permissions.JavaDoc_Service.CAN_READ) }
filters { AuthorizationPreFilter(Permissions.JavaDoc_Service.CAN_READ) }
uri("lb://javadoc-service")
}
route {
host("registry.michibaum.ch")
// filters { AuthorizationPreFilter() }
filters { AuthorizationPreFilter() }
uri("lb://registry-service")
}
route {
host("usermanagement.michibaum.ch")
// filters { AuthorizationPreFilter() }
filters { AuthorizationPreFilter() }
uri("lb://usermanagement-service")
}
route {
host("google.michibaum.ch")
// filters { AuthorizationPreFilter() }
uri("https://www.google.ch/")
host("michibaum.ch")
filters { AuthorizationPreFilter() }
uri("lb://website-service")
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion javadoc-service/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ spring:
lifecycle:
timeout-per-shutdown-phase: 20s
application:
name: javadoc-service
name: website-service
cloud:
discovery:
client:
Expand Down
33 changes: 33 additions & 0 deletions website-service/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/
src/main/resources/angular

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/

### VS Code ###
.vscode/
Binary file added website-service/.mvn/wrapper/maven-wrapper.jar
Binary file not shown.
2 changes: 2 additions & 0 deletions website-service/.mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.5/apache-maven-3.9.5-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar
1 change: 1 addition & 0 deletions website-service/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Website Service
Loading

0 comments on commit 80aa03e

Please sign in to comment.