ops: version isolated subscription gateway configuration
This commit is contained in:
1 parent
9a523b625c
commit
e7ec154f75
6 files changed
+160
No files matched your search
@@ -0,0 +1,29 @@
|
||||
user nginx;
|
||||
worker_processes 1;
|
||||
pid /var/run/nginx.pid;
|
||||
events { worker_connections 256; }
|
||||
http {
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
server_tokens off;
|
||||
server {
|
||||
listen 64444 ssl;
|
||||
ssl_certificate /etc/letsencrypt/live/c2.deeplink-subscribe.com/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/c2.deeplink-subscribe.com/privkey.pem;
|
||||
root /var/www/html;
|
||||
index index.php;
|
||||
location / { try_files $uri /index.php$is_args$args; }
|
||||
location ~ ^/api/[a-z_]+\.php$ {
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_pass 127.0.0.1:9000;
|
||||
}
|
||||
location ~ \.php$ {
|
||||
try_files $uri /index.php$is_args$args;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_pass 127.0.0.1:9000;
|
||||
}
|
||||
location ~ /\. { deny all; }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user