вот дает ошибку с 135 строчки а там так
135 server {
136 listen *:8081;
137 server_name
opt.deploy.oleg.com;
138
139 client_max_body_size 2m;
140
141 location / {
142 proxy_pass http://localhost:4202;
143 proxy_http_version 1.1;
144 proxy_set_header Upgrade $http_upgrade;
145 proxy_set_header Connection 'upgrade';
146 proxy_set_header Host $host;
147 proxy_cache_bypass $http_upgrade;
148 }
149
150 }
151 server {
152 listen 8081 ssl http2;
153 server_name
deploy.oleg.com;
154
155 client_max_body_size 2m;
156
157 location / {
158 proxy_pass http://localhost:4202;
159 proxy_http_version 1.1;
160 proxy_set_header Upgrade $http_upgrade;
161 proxy_set_header Connection 'upgrade';
162 proxy_set_header Host $host;
163 proxy_cache_bypass $http_upgrade;
164 }
165
166 ssl_certificate /etc/nginx/ssl/star_oleg.com.crt;
167 ssl_certificate_key /etc/nginx/ssl/oleg.com.key;
168 ssl_session_cache shared:SSL:1m;
169 ssl_session_timeout 5m;
170 ssl_protocols TLSv1.2 TLSv1.3;
171 ssl_prefer_server_ciphers on;
17
173
174 # add_header Access-Control-Allow-Origin "*";
175 # add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, PUT, DELETE';
176 # add_header 'Access-Control-Allow-Headers' 'X-Requested-With,Accept,Content-Type, Origin';
177 }
178