feat: testing contact form features
This commit is contained in:
18
ops/jody-contact-api.service
Normal file
18
ops/jody-contact-api.service
Normal file
@@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=Jody Portfolio Contact API
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=www-data
|
||||
Group=www-data
|
||||
WorkingDirectory=/var/www/jody/contact-api
|
||||
EnvironmentFile=/etc/jody/contact-api.env
|
||||
ExecStart=/usr/bin/node /var/www/jody/contact-api/dist/index.js
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
9
ops/nginx-contact-api.conf
Normal file
9
ops/nginx-contact-api.conf
Normal file
@@ -0,0 +1,9 @@
|
||||
# Place inside your HTTPS server block for the portfolio domain.
|
||||
location /api/ {
|
||||
proxy_pass http://127.0.0.1:8787/;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
Reference in New Issue
Block a user