🐛 fix nginx
continuous-integration/drone/push Build is passing Details

master
Mohamed HASSANI 6 days ago
parent 4cab9393e6
commit 56777a809e

@ -1,7 +1,13 @@
FROM nginx:alpine
# Remove default configuration
RUN rm /etc/nginx/conf.d/default.conf
# Copy application files
COPY . /var/www/html/
# Copy Nginx configuration file
COPY nginx.conf /etc/nginx/conf.d/default.conf
# Expose port 80
EXPOSE 80

@ -0,0 +1,15 @@
server {
listen 80;
server_name codefirst.iut.uca.fr;
root /var/www/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
location /assets/ {
alias /var/www/html/assets/;
}
}
Loading…
Cancel
Save