Reverse proxy for drawio-cernbox
Allows to change the production website pointed from CERNBox before an upgrade.
A proper role with "edit" permissions in the OpenShift project.
The OpenShift CLI okd
- apiVersion: v1
data:
app-nginx.conf: |
server {
listen 8080 default_server;
server_name drawio-cernbox.web.cern.ch;
location / {
proxy_pass <target website>;
}
}
oc login https://openshift.cern.ch --token=<token>
oc project drawio-cernbox
oc create -f nginx.yml
Note that if some of the objects created by the template already exists during the execution of this command it will fail for that specific object and will not be uploaded.
To remove all the objects from the project the following command might be executed.
oc delete all --all
The ConfigMap should be manually removed.