Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to load CSS style images when deploy angular coreui in off root Nginx #3

Open
samminen opened this issue Nov 14, 2018 · 0 comments

Comments

@samminen
Copy link

I deployed my coreui angular app in ngnix as off root deployment. When i launch the App URL, I see few images ( rendered from CSS classes as shown below) not rendering in the UI.

CSS Class to render image:
.icon-speech {
content: "\e02c" !important;
}

Ngnix config file:

server {
#-------

location /rig-activity {

    set $url http://edge_rig-activity-service;
                rewrite ^/rig-activity(.*) $1 break;
                proxy_pass $url;
        }

        location /rig-activity-ui/ {
            #enable for debug mode
            #proxy_pass http://localhost:4200;


            #root /www/html;
            alias /www/rig-activity-ui/;

            #index  index.html index.htm;

            try_files $uri$args $uri$args/ $uri/ /rig-activity-ui/index.html;
        }

}
coreui_icons_issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant