Added docker, nginx and systemd configs

This commit is contained in:
ftc
2022-12-11 18:53:19 +03:00
commit 8d4f7690fc
5 changed files with 90 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
FROM nginx
RUN mkdir -p /var/www
COPY glade.conf /etc/nginx/conf.d/default.conf
+44
View File
@@ -0,0 +1,44 @@
server {
listen *:80;
# listen 91.109.206.118:443 ssl;
client_max_body_size 512m;
keepalive_timeout 70;
large_client_header_buffers 8 16k;
access_log /var/log/glade.access.log main;
error_log /var/log/glade.error.log;
server_name glade.1sim.online;
set $root /var/www;
location = /favicon.ico {
root $root;
try_files $uri $uri/ =404;
}
location ~ \.php$ {
#include closed.conf;
root $root;
try_files $uri $uri/ =404;
fastcgi_pass app:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $root$fastcgi_script_name;
include fastcgi_params;
}
location / {
root $root;
index index.html index.htm index.php index.shtml;
}
location ~ /\.ht {
deny all;
}
}
server {
listen *:80;
server_name glade.acm.petrsu.ru glade.1sim.ru;
return 301 $scheme://glade.1sim.online$request_uri;
}