Correction, manquait config nginx non-générée
This commit is contained in:
1 parent
364dd37265
commit
5d9a11a655
2 files changed
+25
-1
No files matched your search
@@ -0,0 +1,23 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
|
||||
client_max_body_size 128M;
|
||||
|
||||
# serve media files
|
||||
location /media/ {
|
||||
alias /media/;
|
||||
}
|
||||
# pass requests for dynamic content to gunicorn
|
||||
location / {
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_pass http://web_recipes:8080;
|
||||
|
||||
error_page 502 /errors/http502.html;
|
||||
}
|
||||
|
||||
location /errors/ {
|
||||
alias /etc/nginx/conf.d/errorpages/;
|
||||
internal;
|
||||
}
|
||||
}
|
||||
@@ -2,9 +2,10 @@
|
||||
|
||||
|
||||
echo "-----Copie des fichiers dans /OPT. Serveur web sur port 8099"
|
||||
mkdir /opt/tandoor-pod
|
||||
mkdir -p /opt/tandoor-pod/nginx_config
|
||||
cp .env /opt/tandoor-pod
|
||||
cp docker-compose.yml /opt/tandoor-pod
|
||||
cp web-recipes.conf /opt/tandoor-pod/nginx_config/.
|
||||
|
||||
echo "-----Config firewall"
|
||||
firewall-cmd --add-port=8099/tcp --permanent
|
||||
|
||||
Reference in new issue
Block a user