Snapshot: full project state
This commit is contained in:
5
deploy/env
Normal file
5
deploy/env
Normal file
@@ -0,0 +1,5 @@
|
||||
BTCPAY_URL=https://10.30.20.140
|
||||
BTCPAY_STORE=GUZqSmsabLYRQ24zRMGAmepTXxdvFagenCBBCQNr1773
|
||||
BTCPAY_KEY=385204347c761fa8bac2119f8fbc339b033ea490
|
||||
BTCPAY_WEBHOOK_SECRET=d68ccd12547de8253a74be0e5c80927d075360e99402342a
|
||||
TM_PRICE_USD=12.00
|
||||
13
deploy/nginx-threatmarket.conf
Normal file
13
deploy/nginx-threatmarket.conf
Normal file
@@ -0,0 +1,13 @@
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
server_name _;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:8500;
|
||||
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;
|
||||
}
|
||||
}
|
||||
14
deploy/threatmarket.service
Normal file
14
deploy/threatmarket.service
Normal file
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=THREATMARKET threat-intel marketplace (gunicorn)
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/opt/threatmarket
|
||||
EnvironmentFile=/opt/threatmarket/env
|
||||
ExecStart=/opt/threatmarket/venv/bin/gunicorn --workers 2 --bind 127.0.0.1:8500 app:app
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user