Publishing a Protein Site: Server Publishing Settings and Cloudflare
For a Protein site to be published on its own domain, two things are required: the DNS record of the domain name must point to the Protein server and the broadcast settings for that domain name must be set on the server. Protein allows you to perform these operations from the site details, on the screen.
This guide explains step by step how to connect the domain name with Cloudflare, turn on HTTP broadcasting from the Server Broadcast Settings tab, obtain the SSL certificate and control the broadcast.
1. Select Domain Name from Cloudflare
- Open the General Definitions tab in the site detail. If Cloudflare connection is defined in your installation, the Select Domain button appears next to the Domain field; Press the button.
- In the Select domain name tab of the Domain with Cloudflare window that opens, the domain names in your Cloudflare account are listed with their status. Select the domain name you want to use.
- If the domain name is not listed, go to the Connect new domain tab, type the domain name and press Add to Cloudflare. If there is more than one Cloudflare account, select the account to add.
- For newly added or not yet active domain names, the nameserver addresses provided by Cloudflare are shown on the screen. Replace the nameserver records with these addresses in the panel of the company from which you purchased the domain name, then follow the status with Check status. It may take anywhere from a few minutes to 24 hours for the change to propagate; During this time, you can continue with the next steps. To continue with the newly added domain name, use the Continue with this domain button.
2. Enter Subdomain and Server IP Information
Domain | Description |
|---|---|
Subdomain | If left blank, the main domain name is used. For example, if "dealer" is written, the site will be published at bayan.alanadi.com. Only lowercase letters, numbers, dashes and periods can be used. |
Server IP | The Internet-facing IPv4 address of the server on which the protein runs is automatically detected; You can have it detected again with the refresh icon. If the server is behind NAT or a load balancer, type the externally accessed IP address. |
3. Create DNS Record
- Press the Create DNS record button. The registration is created in Cloudflare, pointing the domain directly to the server (DNS only, Cloudflare proxy off) and the domain name is written into the form. Since the SSL certificate will be obtained on the server in the next steps, the proxy option is not used.
- If there is another record in Cloudflare for the same address, a warning will be displayed and the existing records will be listed. If you say Overwrite and forward, these records will be deleted and the address will be directed to this server; If you are not sure, say Cancel.
- If you manage the DNS record yourself, the Use only the domain name button writes only the domain name to the form without touching the DNS record.
- Finally, click Save in the General Definitions tab. press.
4. Go Broadcast from the Server Broadcast Settings Tab
- Open the Server Broadcast Settings tab in the site detail. If the site is not yet live, "This domain is not yet live." message and the Publish button appear. Press
- Publish. The process steps are followed sequentially on the screen: defining the site on the server, adding the HTTP broadcast, restarting the application server if necessary, waiting for the server to be ready, and verifying the HTTP broadcast.
- If necessary, a restart may take several minutes; Wait before turning off the screen. When the process is finished, "HTTP broadcast is active." message appears.
- If verification fails, restart the process after a while; This may be caused by the fact that the DNS record has not yet been propagated.
5. Get SSL Certificate and Turn on https Redirect
- SSL certificate is not obtained automatically; After HTTP broadcast is activated, press the Get SSL button on the SSL Certificate card. The certificate is obtained free of charge with Let's Encrypt.
- When the process is completed, the HTTPS card becomes "Active". Sites with a certificate have a Refresh button on the same card.
- If the certificate cannot be obtained, see SSL error detail. The most common reason is that the DNS record does not yet point to this server; After many attempts, the certificate provider may hold for a while.
- Once the certificate is received, you can turn on the Routing switch. When on, http:// requests go to https:// with the address and parameters preserved; When it is closed, the site is opened separately from two addresses.
6. Check Broadcast
Card | Expected status |
|---|---|
HTTP | Site accessible case |
HTTPS | Active: site is live securely via https:// |
SSL Certificate | Certificate defined |
- To update the status, use the Refresh status link and check by opening the site with https:// in the browser.
- Accessibility, number of visitors and page views, response codes and server load can be monitored in the Monitoring field at the bottom of the tab. Data is collected on the server, stored for 30 days, and visitor IP addresses are not recorded.
- The Unpublish link is used to withdraw the site from publication; When approval is given, HTTP and HTTPS broadcasting for this domain will be stopped.
7. Manual Method
- Your installation's broadcast mode appears in the information line at the top of the Server Broadcast Settings tab. In installations running Apache, broadcast settings are made manually; For this, you can refer to the Apache virtual server (vhost) definition and SSL installation contents in the User Guide.
Summary
Step | What done |
|---|---|
1. Select the domain name | Using General Definitions > Select Domain, the domain name is selected from Cloudflare or the new domain name is connected |
2. Subdomain and IP | If desired, write the subdomain and check the automatically detected Server IP |
3. DNS record | Create DNS record opens the record (proxy off), Save |
4. Broadcast | Server Broadcast Settings > Broadcast; Waiting until HTTP broadcast is verified |
5. SSL | Certificate is obtained with the Get SSL button, and Redirection is turned on if desired |
6. Status is checked with Check | Cards and Refresh Status, the site opens with https:// |
7. Manual method | In Apache installations, vhost and SSL guides are followed |
Feedback
Shall we talk about Workcube?
Call duration has expired.