-
Pulling the hair I don't have out with Ubuntu 18x (digital ocean) & Next: 9.4 set up. Getting a 404 code on all the js & css and after messing with these all day feel like its the web server. I'm not versed very well with nginx but feel like something must be off there (i have no idea honestly lol) `server {
} HTTP redirectserver {
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Fixed it for anyone who needs helps - I mean "fixed", hell, it works :-) `upstream nextjs { server { SSLssl_certificate /etc/letsencrypt/live/myurl.com/fullchain.pem; loggingerror_log /var/log/nginx/myurl.com.error.log warn; reverse proxylocation / {
} HTTP redirectserver { location / { |
Beta Was this translation helpful? Give feedback.
Fixed it for anyone who needs helps - I mean "fixed", hell, it works :-)
`upstream nextjs {
server localhost.43:5000;
}
server {
listen 443 ssl;
server_name myurl.com
SSL
ssl_certificate /etc/letsencrypt/live/myurl.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/myurl.com/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/myurl.com/chain.pem
logging
error_log /var/log/nginx/myurl.com.error.log warn;
reverse proxy
location / {
proxy_pass http://nextjs;