In documentation it says: "The nginx configuration, provided with the base image, can be used by adding an application specific config".
In my understanding it seems that all i have to do to add my custom config is:
FROM cloudron/base:2.0.0
CLOUDRON related stuff eg WORKDIR
ADD nginx-custom.conf /etc/nginx/sites-enabled/nginx-custom.conf
OTHER CUSTOM STUFF required by my app
Am I wrong? It will work like that? Will cloudron forward ports to my container port 8000 if
server {
listen 8000;
root /app/code/dist;
location /api/v1/ {
proxy_pass http://127.0.0.1:8001;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 86400;
}
}
will be my custom configuration?
@mehdi, you've say that you "packaged" few apps for cloudron, can you tell us one authored by you? like this one authored by @girish : https://git.cloudron.io/cloudron/wordpress-unmanaged-app/-/tree/master