First and foremost, thank you for taking the time to read my post. Secondly, I apologize for any language errors in advance.
I am currently attempting to run an Asp.net core application on a Raspberry Pi, but I am encountering difficulties with nginx proxying.
Essentially, I have been following these tutorials to set up my workspace and deploy my project to arm architecture. The only variance is that instead of a basic Hello World application, I have created an MVC application:
The issue arises when I launch the application. By default, it operates on port 5000, but upon nginx proxying to port 80, it fails to load the css.min, javascript files, and the Home directory as seen in the image below:
Refer to the nginx configuration provided below:
server {
listen 80 default_server;
listen [::]:80 default_server;
root /www/mywebsite;
index index.html index.htm index.nginx-debian.html;
server_name _;
location / {
proxy_pass http://127.0.0.1:5000;
proxy_set_header Connection "";
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;
try_files $uri $uri/ =404;
}}