summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nginx/sites/vainsocial.bot.conf37
-rw-r--r--nginx/sites/vainsocial.dev.conf4
2 files changed, 41 insertions, 0 deletions
diff --git a/nginx/sites/vainsocial.bot.conf b/nginx/sites/vainsocial.bot.conf
new file mode 100644
index 0000000..cfe5ed7
--- /dev/null
+++ b/nginx/sites/vainsocial.bot.conf
@@ -0,0 +1,37 @@
+server {
+
+ listen 80;
+ listen [::]:80;
+
+ server_name vainsocial.bot;
+ root /var/www/vainsocial/public;
+ index index.php index.html index.htm;
+
+ location /bridge {
+ return 404;
+ }
+
+ location /ws {
+ return 404;
+ }
+
+ location /stomp {
+ return 404;
+ }
+
+ location /bot {
+ try_files $uri $uri/ /index.php$is_args$args;
+ }
+
+ location ~ \.php$ {
+ try_files $uri /index.php =404;
+ fastcgi_pass php-upstream;
+ fastcgi_index index.php;
+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+ include fastcgi_params;
+ }
+
+ location ~ /\.ht {
+ deny all;
+ }
+}
diff --git a/nginx/sites/vainsocial.dev.conf b/nginx/sites/vainsocial.dev.conf
index 7760861..a2d84be 100644
--- a/nginx/sites/vainsocial.dev.conf
+++ b/nginx/sites/vainsocial.dev.conf
@@ -7,6 +7,10 @@ server {
root /var/www/vainsocial/public;
index index.php index.html index.htm;
+ location /bot {
+ return 404;
+ }
+
location /bridge {
# proxy_pass http://192.168.1.34:8880/api;
proxy_pass http://bridge/api;