Replies: 13 comments 8 replies
-
Hello, I see this message the same as on discord, please choose whether to resolve via github discussion or on discord? |
Beta Was this translation helpful? Give feedback.
-
Kindly provide solution in github |
Beta Was this translation helpful? Give feedback.
-
Hi @ekawibisono, If nginx configure with 4000 port with domain pointing [https://example.com] IPs: If nginx configure with 3000 port and i configure domain in .env file under frontend folder Error - Data not found This is my env file: app configNEXT_PUBLIC_APP_PROTOCOL=https ui config#NEXT_PUBLIC_FEATURED_NETWORKS=PLACEHOLDER_FOR_NEXT_PUBLIC_FEATURED_NETWORKS network configNEXT_PUBLIC_NETWORK_NAME=TEST api configNEXT_PUBLIC_API_BASE_PATH=/ |
Beta Was this translation helpful? Give feedback.
-
Please provide your file default.conf.template on folder proxy @Neoblock8 |
Beta Was this translation helpful? Give feedback.
-
map $http_upgrade $connection_upgrade { default upgrade; server {
}
} server {
} |
Beta Was this translation helpful? Give feedback.
-
@Neoblock8 you use blockscout version ? |
Beta Was this translation helpful? Give feedback.
-
@Neoblock8 i see you using blockscout old, please use blockscout new version V5.3.2 |
Beta Was this translation helpful? Give feedback.
-
In new blockscout, can we run both frontend and backend
…On Sun, Dec 3, 2023, 1:47 PM Ekacitta Wibisono ***@***.***> wrote:
@Neoblock8 <https://github.com/Neoblock8> i see you using blockscout old,
please use blockscout new version V5.3.2
—
Reply to this email directly, view it on GitHub
<#8921 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATKQARKVQDJSTPBA6WVSFSLYHQYTDAVCNFSM6AAAAABACYVNLOVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TONBSGQ3TO>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
@Neoblock8 yes, you can run backend and frontend |
Beta Was this translation helpful? Give feedback.
-
I configure everything in this version. Please provide a solution
…On Sun, Dec 3, 2023, 1:53 PM Ekacitta Wibisono ***@***.***> wrote:
@Neoblock8 <https://github.com/Neoblock8> yes, you can run backend and
frontend
—
Reply to this email directly, view it on GitHub
<#8921 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATKQARIBQDJIKB6L5S7YUWTYHQZIXAVCNFSM6AAAAABACYVNLOVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TONBSGUYDG>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
@Neoblock8 I think you have a problem with your proxy. |
Beta Was this translation helpful? Give feedback.
-
this my config nginx proxy @Neoblock8 you can implement it yourself
|
Beta Was this translation helpful? Give feedback.
-
What did you set in .env file for NEXT_PUBLIC_API_PORT=443
…On Sun, Dec 3, 2023, 2:37 PM Ekacitta Wibisono ***@***.***> wrote:
this my config nginx proxy @Neoblock8 <https://github.com/Neoblock8>
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 9767;
listen 443 ssl;
server_name frontend.testingtoken.tech;
proxy_http_version 1.1;
ssl_certificate /etc/frontend/frontend.pem;
ssl_certificate_key /etc/frontend/frontend.key;
location ~ ^/(api|socket|sitemap.xml|auth/auth0|auth/auth0/callback|auth/logout) {
proxy_pass ${BACK_PROXY_PASS};
proxy_http_version 1.1;
proxy_set_header Host "$host";
proxy_set_header X-Real-IP "$remote_addr";
proxy_set_header X-Forwarded-For "$proxy_add_x_forwarded_for";
proxy_set_header X-Forwarded-Proto "$scheme";
proxy_set_header Upgrade "$http_upgrade";
proxy_set_header Connection $connection_upgrade;
proxy_cache_bypass $http_upgrade;
}
location / {
proxy_pass http://128.199.129.190:3000;
proxy_http_version 1.1;
proxy_set_header Host "$host";
proxy_set_header X-Real-IP "$remote_addr";
proxy_set_header X-Forwarded-For "$proxy_add_x_forwarded_for";
proxy_set_header X-Forwarded-Proto "$scheme";
proxy_set_header Upgrade "$http_upgrade";
proxy_set_header Connection $connection_upgrade;
proxy_cache_bypass $http_upgrade;
}
}
server {
listen 8080;
listen 443 ssl;
server_name stats.testingtoken.tech;
proxy_http_version 1.1;
ssl_certificate /etc/stats/stats.pem;
ssl_certificate_key /etc/stats/stats.key;
proxy_hide_header Access-Control-Allow-Origin;
proxy_hide_header Access-Control-Allow-Methods;
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;
location / {
proxy_pass http://stats:8050/;
proxy_http_version 1.1;
proxy_set_header Host "$host";
proxy_set_header X-Real-IP "$remote_addr";
proxy_set_header X-Forwarded-For "$proxy_add_x_forwarded_for";
proxy_set_header X-Forwarded-Proto "$scheme";
proxy_set_header Upgrade "$http_upgrade";
proxy_set_header Connection $connection_upgrade;
proxy_cache_bypass $http_upgrade;
}
}
server {
listen 8081;
listen 443 ssl;
server_name visualize.testingtoken.tech;
ssl_certificate /etc/visualize/visualize.pem;
ssl_certificate_key /etc/visualize/visualize.key;
proxy_http_version 1.1;
proxy_hide_header Access-Control-Allow-Origin;
proxy_hide_header Access-Control-Allow-Methods;
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-Headers' 'DNT,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization,x-csrf-token' always;
location / {
proxy_pass http://visualizer:8050/;
proxy_http_version 1.1;
proxy_buffering off;
proxy_set_header Host "$host";
proxy_set_header X-Real-IP "$remote_addr";
proxy_connect_timeout 30m;
proxy_read_timeout 30m;
proxy_send_timeout 30m;
proxy_set_header X-Forwarded-For "$proxy_add_x_forwarded_for";
proxy_set_header X-Forwarded-Proto "$scheme";
proxy_set_header Upgrade "$http_upgrade";
proxy_set_header Connection $connection_upgrade;
proxy_cache_bypass $http_upgrade;
if ($request_method = 'OPTIONS') {
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-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-Max-Age' 1728000;
add_header 'Content-Type' 'text/plain charset=UTF-8';
add_header 'Content-Length' 0;
return 204;
}
}
}
server {
listen 9709;
listen 443 ssl;
server_name rpc.testingtoken.tech;
proxy_http_version 1.1;
ssl_certificate /etc/rpc/rpc.pem;
ssl_certificate_key /etc/rpc/rpc.key;
location / {
proxy_pass http://89.117.52.155:9545/;
proxy_http_version 1.1;
proxy_set_header Host "$host";
proxy_set_header X-Real-IP "$remote_addr";
proxy_set_header X-Forwarded-For "$proxy_add_x_forwarded_for";
proxy_set_header X-Forwarded-Proto "$scheme";
proxy_set_header Upgrade "$http_upgrade";
proxy_set_header Connection $connection_upgrade;
proxy_cache_bypass $http_upgrade;
}
}
—
Reply to this email directly, view it on GitHub
<#8921 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATKQARMD55DEYCU5TT5JRJTYHQ6N3AVCNFSM6AAAAABACYVNLOVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TONBSGY4TC>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi,
Running blockscout backend with 4000 port and point with domain ['https://example.com'].
And I ran blockscout frontend with 3000 port. Its working perfectly with http://:3000.
But configure with "https://example.com" the URL, frontend is not working. Showing data is not found
Beta Was this translation helpful? Give feedback.
All reactions