Commit dae1e0c8 authored by EC2 Default User's avatar EC2 Default User

update config

parent 9c1cc881
...@@ -18,6 +18,12 @@ NEXT_PUBLIC_APP_PROTOCOL: https ...@@ -18,6 +18,12 @@ NEXT_PUBLIC_APP_PROTOCOL: https
NEXT_PUBLIC_HOMEPAGE_CHARTS: ["daily_txs"] NEXT_PUBLIC_HOMEPAGE_CHARTS: ["daily_txs"]
NEXT_PUBLIC_IS_TESTNET: "true" NEXT_PUBLIC_IS_TESTNET: "true"
NEXT_PUBLIC_HAS_USER_OPS: "false"
# ad
NEXT_PUBLIC_AD_BANNER_PROVIDER: none
NEXT_PUBLIC_AD_TEXT_PROVIDER: none
# for my account. # for my account.
NEXT_PUBLIC_IS_ACCOUNT_SUPPORTED: "true" NEXT_PUBLIC_IS_ACCOUNT_SUPPORTED: "true"
...@@ -26,4 +32,4 @@ NEXT_PUBLIC_RE_CAPTCHA_APP_SITE_KEY: "6Lc8wUQrAAAAANLnr2lwoAYx1aQ9mmxY1j2lf8lH" ...@@ -26,4 +32,4 @@ NEXT_PUBLIC_RE_CAPTCHA_APP_SITE_KEY: "6Lc8wUQrAAAAANLnr2lwoAYx1aQ9mmxY1j2lf8lH"
# for wallet connect. # for wallet connect.
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID: "e2975047b27374a8f2f0f54549a16df7" NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID: "e2975047b27374a8f2f0f54549a16df7"
NEXT_PUBLIC_NETWORK_RPC_URL: https:// NEXT_PUBLIC_NETWORK_RPC_URL: https://rpc.cmp20.bitheart.org
STATS__BLOCKSCOUT_API_URL: http://host.docker.internal STATS__BLOCKSCOUT_API_URL: http://host.docker.internal:39080
STATS__BLOCKSCOUT_DB_URL: postgresql://blockscout:ceWb1MeLBEeOIfk65gU8EjF8@db:5432/blockscout STATS__BLOCKSCOUT_DB_URL: postgresql://blockscout:ceWb1MeLBEeOIfk65gU8EjF8@db:5432/blockscout
STATS__CREATE_DATABASE: "true" STATS__CREATE_DATABASE: "true"
STATS__DB_URL: postgres://stats:n0uejXPl61ci6ldCuE2gQU5Y@stats-db:5432/stats STATS__DB_URL: postgres://stats:n0uejXPl61ci6ldCuE2gQU5Y@stats-db:5432/stats
......
...@@ -40,7 +40,7 @@ services: ...@@ -40,7 +40,7 @@ services:
- "blockscout_backend.env" - "blockscout_backend.env"
extra_hosts: extra_hosts:
- host.docker.internal=host-gateway - host.docker.internal=host-gateway
image: blockscout/blockscout:latest image: blockscout/blockscout:7.0.2
links: links:
- db:database - db:database
networks: networks:
...@@ -101,7 +101,7 @@ services: ...@@ -101,7 +101,7 @@ services:
- backend - backend
env_file: env_file:
- "blockscout_frontend.env" - "blockscout_frontend.env"
image: ghcr.io/blockscout/frontend:v2.0.0 image: ghcr.io/blockscout/frontend:v1.38.2
#image: ghcr.io/blockscout/frontend:latest #image: ghcr.io/blockscout/frontend:latest
networks: networks:
- exchain - exchain
...@@ -199,19 +199,19 @@ services: ...@@ -199,19 +199,19 @@ services:
- exchain - exchain
volumes: volumes:
- "./data/blockscout/stats-db-data:/var/lib/postgresql/data" - "./data/blockscout/stats-db-data:/var/lib/postgresql/data"
user-ops-indexer: #user-ops-indexer:
container_name: user-ops-indexer # container_name: user-ops-indexer
depends_on: # depends_on:
- backend # - backend
- db # - db
env_file: # env_file:
- "blockscout_user_ops_indexer.env" # - "blockscout_user_ops_indexer.env"
extra_hosts: # extra_hosts:
- host.docker.internal=host-gateway # - host.docker.internal=host-gateway
image: ghcr.io/blockscout/user-ops-indexer:latest # image: ghcr.io/blockscout/user-ops-indexer:latest
networks: # networks:
- exchain # - exchain
restart: always # restart: always
visualizer: visualizer:
container_name: visualizer container_name: visualizer
environment: environment:
......
...@@ -9,6 +9,10 @@ server { ...@@ -9,6 +9,10 @@ server {
server_name localhost; server_name localhost;
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
location ~ ^/(api(?!-docs$)|socket|sitemap.xml|auth/auth0|auth/auth0/callback|auth/logout) { location ~ ^/(api(?!-docs$)|socket|sitemap.xml|auth/auth0|auth/auth0/callback|auth/logout) {
proxy_pass ${BACK_PROXY_PASS}; proxy_pass ${BACK_PROXY_PASS};
proxy_http_version 1.1; proxy_http_version 1.1;
...@@ -41,6 +45,9 @@ server { ...@@ -41,6 +45,9 @@ server {
add_header 'Access-Control-Allow-Origin' '*' always; add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Allow-Credentials' 'true' always; add_header 'Access-Control-Allow-Credentials' 'true' always;
add_header 'Access-Control-Allow-Methods' 'PUT, GET, POST, OPTIONS, DELETE, PATCH' always; add_header 'Access-Control-Allow-Methods' 'PUT, GET, POST, OPTIONS, DELETE, PATCH' always;
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
location / { location / {
proxy_pass http://stats:8050/; proxy_pass http://stats:8050/;
...@@ -65,6 +72,11 @@ server { ...@@ -65,6 +72,11 @@ server {
add_header 'Access-Control-Allow-Methods' 'PUT, GET, POST, OPTIONS, DELETE, PATCH' always; add_header 'Access-Control-Allow-Methods' 'PUT, GET, POST, OPTIONS, DELETE, PATCH' always;
add_header 'Access-Control-Allow-Headers' 'DNT,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization,x-csrf-token' always; add_header 'Access-Control-Allow-Headers' 'DNT,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization,x-csrf-token' always;
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
location / { location / {
proxy_pass http://visualizer:8050/; proxy_pass http://visualizer:8050/;
proxy_http_version 1.1; proxy_http_version 1.1;
......
...@@ -9,6 +9,10 @@ server { ...@@ -9,6 +9,10 @@ server {
server_name localhost; server_name localhost;
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
location ~ ^/(api(?!-docs$)|socket|sitemap.xml|auth/auth0|auth/auth0/callback|auth/logout) { location ~ ^/(api(?!-docs$)|socket|sitemap.xml|auth/auth0|auth/auth0/callback|auth/logout) {
proxy_pass ${BACK_PROXY_PASS}; proxy_pass ${BACK_PROXY_PASS};
proxy_http_version 1.1; proxy_http_version 1.1;
...@@ -31,4 +35,4 @@ server { ...@@ -31,4 +35,4 @@ server {
proxy_set_header Connection $connection_upgrade; proxy_set_header Connection $connection_upgrade;
proxy_cache_bypass $http_upgrade; proxy_cache_bypass $http_upgrade;
} }
} }
\ No newline at end of file
...@@ -10,9 +10,14 @@ server { ...@@ -10,9 +10,14 @@ server {
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_hide_header Access-Control-Allow-Origin; proxy_hide_header Access-Control-Allow-Origin;
proxy_hide_header Access-Control-Allow-Methods; proxy_hide_header Access-Control-Allow-Methods;
add_header 'Access-Control-Allow-Origin' 'http://localhost:3000' always; #add_header 'Access-Control-Allow-Origin' 'http://localhost:3000' always;
add_header 'Access-Control-Allow-Credentials' 'true' always; add_header 'Access-Control-Allow-Origin' '*' always;
#add_header 'Access-Control-Allow-Credentials' 'true' always;
add_header 'Access-Control-Allow-Methods' 'PUT, GET, POST, OPTIONS, DELETE, PATCH' always; add_header 'Access-Control-Allow-Methods' 'PUT, GET, POST, OPTIONS, DELETE, PATCH' always;
add_header 'Access-Control-Allow-Headers' '*';
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
location / { location / {
proxy_pass http://stats:8050/; proxy_pass http://stats:8050/;
...@@ -37,6 +42,10 @@ server { ...@@ -37,6 +42,10 @@ server {
add_header 'Access-Control-Allow-Methods' 'PUT, GET, POST, OPTIONS, DELETE, PATCH' always; add_header 'Access-Control-Allow-Methods' 'PUT, GET, POST, OPTIONS, DELETE, PATCH' always;
add_header 'Access-Control-Allow-Headers' 'DNT,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization,x-csrf-token' always; add_header 'Access-Control-Allow-Headers' 'DNT,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization,x-csrf-token' always;
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
location / { location / {
proxy_pass http://visualizer:8050/; proxy_pass http://visualizer:8050/;
proxy_http_version 1.1; proxy_http_version 1.1;
...@@ -62,4 +71,4 @@ server { ...@@ -62,4 +71,4 @@ server {
return 204; return 204;
} }
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment