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

Allow users to access the internet (controlled endpoints) #18

Open
asalic opened this issue Jun 7, 2024 · 0 comments
Open

Allow users to access the internet (controlled endpoints) #18

asalic opened this issue Jun 7, 2024 · 0 comments

Comments

@asalic
Copy link
Member

asalic commented Jun 7, 2024

Use nginx as a reverse proxy with a CONNECT plugin for TLS/SSL forwarding (like https://github.com/chobits/ngx_http_proxy_connect_module) and allowing only get requests to public repos such as docker, pip, maven etc.

Conf in nginx to filter http verbs should be like:

location /application {
    proxy_pass http://<host>;
    limit_except POST {
        deny all;
    }
}

## Below three pages should be served with GET & POST
location ~ ^/application/(RegisterServet|pd|LoginServlet)$ {
    proxy_pass http://<host>;
}
@asalic asalic changed the title Allow internet access to users to controlled endpoints Allow users to access the internet (controlled endpoints) Jun 7, 2024
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