GithubHelp home page GithubHelp logo

Comments (3)

tntodorov avatar tntodorov commented on July 29, 2024

Sorry, I was distracted and posted the new issue before completing my description...

Anyway, because of flat-ui-official bower stops the install. If I remove flat-ui from the json file, the rest of the dependencies are installed and I get a lot less 404s in the log. At least I can create or delete a workspace, even when there is no styling to the the html.

And a last issue which concerns the installation, but is not related to the old ones #8 and #9: Is there a way to run this behind forward proxy like nginx? I tried to set this up with the following setup in ngxinx:

    upstream c9_upstream {
        server 127.0.0.1:3105;
        server 127.0.0.1:5000;
    }

    server {
        listen 443;
        ssl on;
       # other ssl configuration
        location / {
            # usual proxy configuration for node.js, google is your friend
            proxy_pass http://c9_upstream;
        }
    }

For that to work, I also had to change server.js where passport.js is setup for GitHubStrategy:

    //callbackURL: app.get('baseUrl') + ':' + app.get('port') + '/auth/github/callback'
    callbackURL: app.get('baseUrl') +  '/auth/github/callback'

so the redirect would work. I was able to login, create a test workspace, but starting the workspace timed out. The log did not show any message beyond starting c9. Is it possible for this setup to work behind nginx as a proxy? What I am going for is actually not having to open more ports on my server....

Thanks and best regards,

tntodorov

from cloud9hub.

tntodorov avatar tntodorov commented on July 29, 2024

This is what it looks like without the flat-ui (and without the proxy)...

cloud9hub

from cloud9hub.

Ventajou avatar Ventajou commented on July 29, 2024

You can get the UI back by installing flat-ui with bower and then altering the views under views/includes as such:

In header.html:

    <!-- Loading Bootstrap -->
    <link href="/lib/flat-ui/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
    <!-- Loading Flat UI -->
    <link href="/lib/flat-ui/dist/css/flat-ui.min.css" rel="stylesheet">

And in footer.html:

<script src="/lib/flat-ui/dist/js/vendor/jquery.min.js"></script>
<script src="/lib/flat-ui/dist/js/vendor/respond.min.js"></script>
<script src="/lib/flat-ui/dist/js/flat-ui.min.js"></script>

from cloud9hub.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.