File tree Expand file tree Collapse file tree 1 file changed +33
-1
lines changed Expand file tree Collapse file tree 1 file changed +33
-1
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,6 @@ server {
8888
8989}
9090
91-
9291# Convenience reverse proxy for the call.m.localhost domain to yarn dev --host
9392server {
9493 listen 80;
@@ -120,4 +119,37 @@ server {
120119
121120 error_page 500 502 503 504 /50x.html;
122121
122+ }
123+
124+ # Convenience reverse proxy app.m.localhost for element web
125+ server {
126+ listen 80;
127+ listen [::]:80;
128+ server_name app.m.localhost;
129+
130+ return 301 https://$host$request_uri;
131+ }
132+
133+ server {
134+ listen 443 ssl;
135+ listen [::]:443 ssl;
136+ server_name app.m.localhost;
137+ ssl_certificate /root/ssl/cert.pem;
138+ ssl_certificate_key /root/ssl/key.pem;
139+
140+
141+ location ^~ / {
142+
143+ proxy_set_header Host $host;
144+ proxy_set_header X-Real-IP $remote_addr;
145+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
146+ proxy_set_header X-Forwarded-Proto $scheme;
147+
148+ proxy_pass http://element-web:81;
149+ proxy_ssl_verify off;
150+
151+ }
152+
153+ error_page 500 502 503 504 /50x.html;
154+
123155}
You can’t perform that action at this time.
0 commit comments