Skip to content

Commit

Permalink
Merge pull request #47 from ledgersmb/ehuelsmann-patch-1
Browse files Browse the repository at this point in the history
Update nginx.conf
  • Loading branch information
ehuelsmann authored Nov 12, 2024
2 parents 75bf07e + ab54b53 commit ab0264c
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions perl/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,22 @@ http {

root /home/circleci/project/UI;

location ~ /js/(.*) {
try_files /js/$1 /js-src/$1 =404;
# JS & CSS
location ~* \.(js|css)$ {
add_header Pragma "public";
add_header Cache-Control "public, must-revalidate, proxy-revalidate"; # Production
expires 7d; # Indicate that the resource can be cached for 1 week # Production
try_files $uri =404;
if (!-f $request_filename) {
rewrite ^/([a-z0-9A-Z]+)/(.*) /$2 break;
}
}

location /setup {
proxy_pass http://localhost:5762;
location = / {
return 301 /#.pl
}

location /erp/api {
proxy_pass http://localhost:5762;
}

location ~ \.pl$ {

location / {
proxy_pass http://localhost:5762;
}

Expand Down

0 comments on commit ab0264c

Please # to comment.