Skip to content

Commit fd897ec

Browse files
authored
Change default port from 3000 to 3300 (#426)
1 parent b8440e2 commit fd897ec

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ SESSION_PASSWORD=default-siren-password
55
SSL_ENABLED=true
66
DEBUG=false
77
# don't change these when building the docker image, only change when running outside of docker
8-
PORT=3000
8+
PORT=3300
99
BACKEND_URL=http://127.0.0.1:3001
1010
# if BACKEND_URL is changed, BACKEND_PORT must have a matching port
1111
BACKEND_PORT=3001

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Navigate to the backend directory `cd backend`. Install all required Node packag
5656

5757
After initializing the backend, return to the root directory. Install all frontend dependencies by executing `yarn`. Build the frontend using `yarn build`. Start the frontend production server with `yarn start`.
5858

59-
This will allow you to access siren at `http://localhost:3000` by default.
59+
This will allow you to access siren at `http://localhost:3300` by default.
6060

6161
## Running Local Testnet
6262

docker-assets/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# configure default vars if none provided
44
set -a
5-
PORT=${PORT:-3000}
5+
PORT=${PORT:-3300}
66
BACKEND_URL=${BACKEND_URL:-http://127.0.0.1:3001}
77
BEACON_URL=${BEACON_URL:-http://your-BN-ip:5052}
88
VALIDATOR_URL=${VALIDATOR_URL:-http://your-VC-ip:5062}

docker-assets/siren-http.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ server {
22
listen 80 default_server;
33

44
location / {
5-
proxy_pass http://localhost:3000;
5+
proxy_pass http://localhost:3300;
66
}
77
}

docker-assets/siren-https.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ server {
77
ssl_ciphers HIGH:!aNULL:!MD5;
88

99
location / {
10-
proxy_pass http://localhost:3000;
10+
proxy_pass http://localhost:3300;
1111
}
1212
}

siren.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require('dotenv').config()
66
const dev = process.env.NODE_ENV !== 'production'
77
const app = next({ dev })
88
const handle = app.getRequestHandler()
9-
const PORT = process.env.PORT || 3000
9+
const PORT = process.env.PORT || 3300
1010

1111
const backendUrl = process.env.BACKEND_URL || 'http://127.0.0.1:3001'
1212

src/constants/envars.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export const BACKEND_URL = process.env.BACKEND_URL || 'http://127.0.0.1:3001'
22
export const BACKEND_PORT = process.env.BACKEND_PORT || 3001
3-
export const PORT = process.env.PORT || 3000
3+
export const PORT = process.env.PORT || 3300
44
export const NODE_ENV = process.env.NODE_ENV

utilities/__tests__/calculateEpochEstimate.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ describe('calculateEpochEstimate util', () => {
2020
).toBe(0)
2121
})
2222
it('should return correct values', () => {
23-
mockedFormatUnits.mockReturnValue('3000')
23+
mockedFormatUnits.mockReturnValue('3300')
2424
expect(
2525
calculateEpochEstimate(secondsInHour, 12, {
2626
2323: [32000000, 32000000],
2727
2324: [32000000, 32000000],
2828
}),
29-
).toBe(3000)
29+
).toBe(3300)
3030
})
3131
})

utilities/__tests__/formatEndpoint.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import { Protocol } from '../../src/constants/enums'
33

44
describe('format endpoint util', () => {
55
it('should return the correct format', () => {
6-
expect(formatEndpoint({ protocol: Protocol.HTTP, port: 3000, address: 'localhost' })).toBe(
7-
'http://localhost:3000',
6+
expect(formatEndpoint({ protocol: Protocol.HTTP, port: 3300, address: 'localhost' })).toBe(
7+
'http://localhost:3300',
88
)
99
expect(
10-
formatEndpoint({ protocol: Protocol.HTTP, port: 3000, address: 'localhost/beacon' }),
11-
).toBe('http://localhost:3000/beacon')
10+
formatEndpoint({ protocol: Protocol.HTTP, port: 3300, address: 'localhost/beacon' }),
11+
).toBe('http://localhost:3300/beacon')
1212
})
1313
it('should return undefined if missing endpoint', () => {
1414
expect(formatEndpoint()).toBe(undefined)

0 commit comments

Comments
 (0)