8 changed files with 30 additions and 123 deletions
-
11devops/docker/Dockerfile
-
4devops/docker/nginx/etc/nginx/conf.d/default.conf
-
17devops/docker/nginx/etc/nginx/nginx.conf
-
2devops/k8s/0_ConfigMap/.gitignore
-
57devops/k8s/0_ConfigMap/nginx-dev.yaml
-
4devops/k8s/1_Service/notification-provider-app-service-dev.yaml
-
42devops/k8s/2_Deployment/notification-provider.yaml
-
16docker-compose.yml
@ -0,0 +1,17 @@ |
|||
worker_processes auto; |
|||
error_log /var/log/nginx/error.log warn; |
|||
pid /var/run/nginx.pid; |
|||
events { |
|||
worker_connections 1024; |
|||
} |
|||
http { |
|||
include /etc/nginx/mime.types; |
|||
default_type application/octet-stream; |
|||
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' |
|||
'$status $body_bytes_sent "$http_referer" ' |
|||
'"$http_user_agent" "$http_x_forwarded_for"'; |
|||
access_log /var/log/nginx/access.log main; |
|||
sendfile on; |
|||
keepalive_timeout 65; |
|||
include /etc/nginx/conf.d/default.conf; |
|||
} |
@ -1 +1 @@ |
|||
app-dev.yaml |
|||
notification-provider-app-configmap0-dev.yaml |
@ -1,57 +0,0 @@ |
|||
--- |
|||
apiVersion: v1 |
|||
kind: ConfigMap |
|||
metadata: |
|||
name: notification-provider-nginx-configmap0-dev |
|||
namespace: default |
|||
labels: |
|||
tier: notification-provider |
|||
component: nginx |
|||
environment: dev |
|||
data: |
|||
default.conf: | |
|||
server { |
|||
root /var/www/localhost/public; |
|||
error_log /var/log/nginx/localhost-error.log; |
|||
access_log /var/log/nginx/localhost-access.log; |
|||
|
|||
location / { |
|||
try_files $uri /index.php$is_args$args; |
|||
} |
|||
|
|||
location ~ \.php { |
|||
fastcgi_split_path_info ^(.+\.php)(/.+)$; |
|||
fastcgi_pass 127.0.0.1:9000; |
|||
fastcgi_buffer_size 16k; |
|||
fastcgi_buffers 4 16k; |
|||
include fastcgi_params; |
|||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; |
|||
fastcgi_param DOCUMENT_ROOT $document_root; |
|||
internal; |
|||
} |
|||
location ~ \.php$ { |
|||
return 404; |
|||
} |
|||
} |
|||
nginx.conf: | |
|||
user nginx; |
|||
worker_processes auto; |
|||
error_log /var/log/nginx/error.log warn; |
|||
pid /var/run/nginx.pid; |
|||
events { |
|||
worker_connections 1024; |
|||
} |
|||
http { |
|||
include /etc/nginx/mime.types; |
|||
default_type application/octet-stream; |
|||
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' |
|||
'$status $body_bytes_sent "$http_referer" ' |
|||
'"$http_user_agent" "$http_x_forwarded_for"'; |
|||
access_log /var/log/nginx/access.log main; |
|||
sendfile on; |
|||
#tcp_nopush on; |
|||
keepalive_timeout 65; |
|||
#gzip on; |
|||
include /etc/nginx/conf.d/default.conf; |
|||
} |
|||
... |
Write
Preview
Loading…
Cancel
Save
Reference in new issue