File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ server {
2
+ listen 80;
3
+ listen [::]:80;
4
+ server_name _;
5
+ return 301 https://$host$request_uri;
6
+ }
7
+
8
+ server {
9
+ listen 443 ssl http2 default_server;
10
+ listen [::]:443 ssl http2 default_server;
11
+
12
+ root /var/www/html/example;
13
+ index index.html index.htm index.php;
14
+
15
+ server_name _;
16
+
17
+ include /config/nginx/proxy-confs/*.subfolder.conf;
18
+
19
+ include /config/nginx/ssl.conf;
20
+
21
+ client_max_body_size 0;
22
+
23
+ location / {
24
+ try_files $uri $uri/ /index.php?$args @app;
25
+ }
26
+
27
+ location @app {
28
+ proxy_pass http://wordpress;
29
+ proxy_set_header Host $host;
30
+ proxy_redirect off;
31
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
32
+ proxy_set_header X-Forwarded-Proto https;
33
+ proxy_set_header X-Real-IP $remote_addr;
34
+ }
35
+
36
+ }
You can’t perform that action at this time.
0 commit comments