diff --git a/readme.md b/readme.md index 963e64c..6182ad0 100644 --- a/readme.md +++ b/readme.md @@ -93,42 +93,26 @@ listen.group = w0bm ## NGINX -First you have to create a config file in `/etc/nginx/conf.d/` +First of all edit the nginx.conf and add the following inside of the http context -`sudo nvim /etc/nginx/conf.d/w0bm.conf` +`include w0bm.conf` -This config is for the use with a reverse proxy intended. +Then create the w0bm config file in `/etc/nginx/` + +`sudo nvim /etc//w0bm.conf` + +These are the bare minimum configuration settings for w0bm to work with nginx
-#w0bm.com Configuration
 server {
-    listen 80;
-    listen [::]:80;
-    server_name w0bm.com www.w0bm.com v4.w0bm.com;
-    include letsencrypt.conf;
-    large_client_header_buffers 4 32k;
-    return 301 https://w0bm.com$request_uri;
-}
-
-server {
-    listen 443 ssl http2;
-    listen [::]:443 ssl http2;
-    server_name w0bm.com www.w0bm.com v4.w0bm.com;
+    listen 80 default_server;
+    server_name _;
     access_log /var/log/nginx/w0bm/w0bm-access.log;
-    root /home/w0bm/w0bm.com/public;
-    error_log /var/log/nginx_w0bm_error.log;
+    error_log /var/log/nginx/w0bm/w0bm-error.log;
+    root /home/w0bm/w0bm/public;
     index index.php;
     client_max_body_size 500M;
     gzip on;
-    ssl on;
-    ssl_certificate /path/to/your/cert.pem;
-    ssl_certificate_key /path/to/your/key.pem;
-    ssl_session_timeout 1d;
-    ssl_protocols TLSv1.2;
-    ssl_ciphers 'ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256';
-    ssl_prefer_server_ciphers on;
-    ssl_stapling on;
-    ssl_stapling_verify on;
     large_client_header_buffers 4 32k;
     location ~ \.php$ {
         fastcgi_split_path_info ^(.+\.php)(/.+)$;
@@ -137,7 +121,7 @@ server {
         fastcgi_param PATH_TRANSLATED $document_root$fastcgi_script_name;
         #fastcgi_param GEOIP_ADDR $remote_addr;
         #fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
-        fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
+        fastcgi_pass unix:/run/php71-fpm/php-fpm.sock;
     }
     location ~* \.(?:css|js)$ {
         gzip on;
@@ -150,13 +134,9 @@ server {
         add_header Cache-Control "public";
     }
     location / {
-        if ($http_user_agent ~* 'MSIE ([1-9]|10)\.') {
-            return 302 https://www.microsoft.com/en-us/WindowsForBusiness/End-of-IE-support;
-        }
         try_files $uri $uri/ /index.php?$args;
     }
 }
-
 
@@ -173,7 +153,6 @@ server { For your local development instance make sure that you change 'secure' => true, to 'secure' => false, in `config/session.php` otherwise it will not let you log in! - Create the .env file with the following content
@@ -203,6 +182,7 @@ RECAPTCHA_PRIVATE=
 Now put some random webm in the folder and name it `1.webm`
 
 `mkdir public/thumbs`
+
 `mkdir public/thumbs/beta`
 
 Modify `database/seeds/DatabaseSeeder.php` and uncomment all the different seeders. (Initially you'll need all)