Skip to content

Commit 2131ae5

Browse files
committed
simple config
1 parent 87fec08 commit 2131ae5

File tree

2 files changed

+16
-30
lines changed

2 files changed

+16
-30
lines changed

.github/workflows/nginx-sync.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ jobs:
2626
--tenant "${{ secrets.AZURE_TENANT_ID }}"
2727
2828
- name: Sync NGINX Config to Azure
29-
uses: kuthiala/nginx-for-azure-deploy-action@main
29+
# uses: kuthiala/nginx-for-azure-deploy-action@main
30+
uses: nginxinc/[email protected]
3031
with:
3132
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
3233
resource-group-name: ${{ secrets.AZURE_RESOURCE_GROUP_NAME }}

configs/nginx.conf

Lines changed: 14 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,20 @@
1+
user nginx;
2+
worker_processes auto;
3+
worker_rlimit_nofile 8192;
4+
pid /run/nginx/nginx.pid;
5+
>
6+
error_log /var/log/nginx/error.log error;
7+
>
18
http {
2-
upstream app {
3-
zone app 64k;
4-
least_conn;
5-
server 10.0.1.4:8000;
6-
}
7-
8-
server {
9-
listen 80;
10-
server_name *.example.com;
11-
12-
location / {
13-
include /etc/nginx/conf.d/proxy.conf;
14-
proxy_pass http://app;
15-
health_check;
16-
}
17-
}
18-
9+
access_log off;
10+
server_tokens "";
1911
server {
20-
listen 443 ssl default_server;
21-
# listen 443;
22-
server_name example.com;
23-
24-
ssl_certificate /etc/nginx/ssl/000000/my-cert.crt;
25-
ssl_certificate_key /etc/nginx/ssl/000000/my-cert.key;
26-
12+
listen 80 default_server;
13+
server_name localhost;
2714
location / {
28-
include /etc/nginx/conf.d/proxy.conf;
29-
proxy_pass http://app;
30-
health_check;
15+
# Points to a directory with a basic html index file with
16+
# a "Welcome to NGINX as a Service for Azure!" page
17+
return 200 "hello world";
3118
}
3219
}
3320
}
34-
35-
# Github sync

0 commit comments

Comments
 (0)