Code Monkey home page Code Monkey logo

Comments (2)

lovasoa avatar lovasoa commented on July 29, 2024

Hello !
The public board is nothing but a normal board named "anonymous". The only thing that makes it special is the prominent link to it from the home page. You can write a different home page for your installation if you want, either by overwriting client-data/index.html or by putting a reverse proxy in front of SQLPage. For instance

server {
    listen 80;
    server_name yourdomain.com;  # Replace with your actual domain

    location = / {
        # Replace 'custom_home.html' with the actual filename of your custom HTML file
        alias /path/to/custom_home.html;
        try_files $uri =404;
    }

    location / {
        # Proxy requests to the service running on port 3001
        proxy_pass http://127.0.0.1:5001;  # Change the port if needed
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }

    # Additional server configuration goes here if necessary
}

from whitebophir.

losdelfuego avatar losdelfuego commented on July 29, 2024

Thanks! I'm already using a reverse proxy on my build, and since I'm running in a docker container, the custom home route might be the way to go. Pointing to the correct links will be tricky regardless with a Docker installation, so a customizable home page could be useful.

from whitebophir.

Related Issues (20)

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.