Skip to content

Commit

Permalink
Use ports that are further away
Browse files Browse the repository at this point in the history
  • Loading branch information
MTRNord committed Oct 24, 2023
1 parent 0696023 commit 97fcdb9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion mx-tester.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ up:
# Wait until postgresql is ready
- until psql postgres://mjolnir-tester:mjolnir-test@127.0.0.1:8083/mjolnir-test-db -c ""; do echo "Waiting for psql..."; sleep 1s; done
# Launch the reverse proxy, listening for connections *only* on the local host.
- docker run --rm --network host --name mjolnir-test-reverse-proxy -p 127.0.0.1:8084:8084 -p 127.0.0.1:8085:8085 -p 127.0.0.1:8086:8086 -p 127.0.0.1:8081:80 -v $MX_TEST_CWD/test/nginx.conf:/etc/nginx/nginx.conf:ro -d nginx
- docker run --rm --network host --name mjolnir-test-reverse-proxy -v $MX_TEST_CWD/test/nginx.conf:/etc/nginx/nginx.conf:ro -d nginx
- yarn install
- npx ts-node src/appservice/cli.ts -r -u "http://host.docker.internal:9000"
- cp mjolnir-registration.yaml $MX_TEST_SYNAPSE_DIR/data/
Expand Down
8 changes: 4 additions & 4 deletions test/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ http {
server {
listen [::]:8081 ipv6only=off;

location ~ ^/_matrix/client/(r0|v3)/rooms/([^/]*)/report/(.*)$ {
location ~ ^/_matrix/client/(r0|v3)/rooms/([^/\s]*)/report/(.*)$ {
# Abuse reports should be sent to Mjölnir.
# The r0 endpoint is deprecated but still used by many clients.
# As of this writing, the v3 endpoint is the up-to-date version.
Expand Down Expand Up @@ -41,7 +41,7 @@ http {
}
}
server {
listen [::]:8084 ipv6only=off;
listen [::]:7070 ipv6only=off;

# MSC1929 Test in worst-case
location /.well-known/matrix/support {
Expand All @@ -50,7 +50,7 @@ http {
}
}
server {
listen [::]:8085 ipv6only=off;
listen [::]:7071 ipv6only=off;

# MSC1929 Test in supportpage_only-case
location /.well-known/matrix/support {
Expand All @@ -61,7 +61,7 @@ http {
}
}
server {
listen [::]:8086 ipv6only=off;
listen [::]:7072 ipv6only=off;

# MSC1929 Test in contacts-case
location /.well-known/matrix/support {
Expand Down

0 comments on commit 97fcdb9

Please sign in to comment.