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

WIP - fix: Updating docker & nginx configs for multicore #1620

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jurevans
Copy link
Collaborator

Resolves #1598

See: #1598

For an example of how to get multicore working locally with a production build, one can use the following Python script to host the dist folder locally (copy into /dist after building, then run python server.py

from http.server import HTTPServer, SimpleHTTPRequestHandler


class CustomHandler(SimpleHTTPRequestHandler):
    def end_headers(self):
        # Add the cross-origin headers to every response
        self.send_header("Cross-Origin-Opener-Policy", "same-origin")
        self.send_header("Cross-Origin-Embedder-Policy", "require-corp")

        # Call the base class's end_headers method
        super().end_headers()


# Run the server
server_address = ("", 8000)
httpd = HTTPServer(server_address, CustomHandler)
print("Serving on http://localhost:8000")
httpd.serve_forever()

@jurevans jurevans added bug Something isn't working App: Namadillo labels Feb 10, 2025
@jurevans jurevans self-assigned this Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
App: Namadillo bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Production Namadillo build breaks multicore features
1 participant